Java Reference
In-Depth Information
Thrown when the optional data (that is, not part of default
serialization) in the object input stream is corrupt or was not
read by the reading method.
StreamCorruptedException extends ObjectStreamException
Thrown when internal object stream state is missing or inval-
id.
SyncFailedException extends IOException
Thrown by FileDescriptor.sync when the data cannot be guar-
anteed to have been written to the underlying media.
UnsupportedEncodingException extends IOException
Thrown when an unknown character encoding is specified.
UTFDataFormatException extends IOException
Thrown by DataInputStream.readUTF when the string it is read-
ing has malformed UTF syntax.
WriteAbortedException extends ObjectStreamException
Thrown when an exception occurred during a serialization
write operation.
In addition to these specific exceptions, other exceptional conditions
in java.io are signaled with an IOException containing a string that
describes the specific error encountered. For example, using a Piped
stream object that has never been connected throws an exception
object with a detail string such as "Pipenot connected" , and trying to
push more than the allowed number of characters onto a PushbackReader
tHRows an exception with the string "Pushbackbuffer overflow" . Such ex-
ceptions are difficult to catch explicitly, so this style of exception report-
 
Search WWH ::




Custom Search