| | |
help
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: May 2005
Posts: 514
Reputation:
Solved Threads: 19
This is done for error handling
Form ezample
If the stream is null.. etc etc..
It allows comparison..
Form ezample
Java Syntax (Toggle Plain Text)
* @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the stream is null</li> * </ul> * @exception SWTException <ul> * <li>ERROR_INVALID_IMAGE - if the image file contains invalid data</li> * <li>ERROR_IO - if an input/output error occurs while reading data</li> * </ul> */ public ImageData[] load(InputStream stream) { if (stream == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); reset(); data = FileFormat.load(stream, this); return data; }
If the stream is null.. etc etc..
It allows comparison..
![]() |
Other Threads in the Java Forum
- Previous Thread: java 2d games problem (collision, well prevention)
- Next Thread: java is supposed to be secure?
| Thread Tools | Search this Thread |
Tag cloud for Java
addressbook android api apple applet application arguments array arrays automation binary bluetooth button calculator chat class classes client code columns component converter database draw eclipse error errors event exception file fractal ftp game givemetehcodez graphics gridlayout gui helpwithhomework html ide image inetaddress input integer j2me japplet java javaprojects jme jmf jni jpanel julia link linux list loop map method methods midlethttpconnection mobile netbeans newbie number objects openjavafx oracle php print problem program programming project projects recursion rim scanner screen server set signing size smart sms socket sort sql storm string support swing test threads time tree unlimited variablebinding webservices windows





