|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.apache.derby.iapi.services.io.FormatIdInputStream
public final class FormatIdInputStream
A stream for reading objects with format id tags which was produced by a FormatIdOutputStream.
Please see the documentation for FormatIdOutputStream for information about the streams format and capabilites.
| Field Summary | |
|---|---|
protected ClassFactory |
cf
|
private ErrorInfo |
errorInfo
|
private java.lang.Exception |
myNestedException
|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
FormatIdInputStream(java.io.InputStream in)
Constructor for a FormatIdInputStream |
|
| Method Summary | |
|---|---|
java.io.InputStream |
cloneStream()
Clone the stream. |
void |
closeStream()
Close. |
(package private) ClassFactory |
getClassFactory()
|
java.lang.String |
getErrorInfo()
|
java.io.InputStream |
getInputStream()
|
java.lang.Exception |
getNestedException()
|
private java.io.ObjectInputStream |
getObjectStream()
|
void |
initStream()
Initialize. |
java.lang.Object |
readObject()
Read an object from this stream. |
void |
resetStream()
Reset the stream to the beginning. |
private void |
setErrorInfo(ErrorInfo ei)
|
void |
setInput(java.io.InputStream in)
Set the InputStream for this FormatIdInputStream to the stream provided. |
| Methods inherited from class java.io.DataInputStream |
|---|
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes |
| Methods inherited from class java.io.FilterInputStream |
|---|
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.ObjectInput |
|---|
available, close, read, read, read, skip |
| Methods inherited from interface java.io.DataInput |
|---|
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
| Field Detail |
|---|
protected ClassFactory cf
private ErrorInfo errorInfo
private java.lang.Exception myNestedException
| Constructor Detail |
|---|
public FormatIdInputStream(java.io.InputStream in)
in - bytes come from here.| Method Detail |
|---|
public java.lang.Object readObject()
throws java.io.IOException,
java.lang.ClassNotFoundException
readObject in interface java.io.ObjectInputjava.io.IOException - An IO or serialization error occured.
java.lang.ClassNotFoundException - A class for an object in
the stream could not be found.public void setInput(java.io.InputStream in)
in - The new input stream.public java.io.InputStream getInputStream()
public java.lang.String getErrorInfo()
getErrorInfo in interface ErrorInfogetErrorInfo in interface ErrorObjectInputpublic java.lang.Exception getNestedException()
getNestedException in interface ErrorInfogetNestedException in interface ErrorObjectInputprivate void setErrorInfo(ErrorInfo ei)
ClassFactory getClassFactory()
private java.io.ObjectInputStream getObjectStream()
throws java.io.IOException
java.io.IOException
public void resetStream()
throws java.io.IOException,
StandardException
Resetable
resetStream in interface Resetablejava.io.IOException
StandardExceptionResetable.resetStream()
public void initStream()
throws StandardException
Resetable
initStream in interface ResetableStandardExceptionResetable.initStream()public void closeStream()
Resetable
closeStream in interface ResetableResetable.closeStream()public java.io.InputStream cloneStream()
CloneableStreamTo be used when a "deep" clone of a stream is required rather than multiple references to the same stream.
The resulting clone should support reads, resets, closes which do not affect the original stream source of the clone.
cloneStream in interface CloneableStreamCloneableStream.cloneStream()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||