java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.apache.derby.iapi.services.io.FormatIdInputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataInput, ErrorInfo, ErrorObjectInput, java.io.ObjectInput, org.apache.derby.iapi.types.Resetable
- public final class FormatIdInputStream
- extends java.io.DataInputStream
- implements ErrorObjectInput, org.apache.derby.iapi.types.Resetable
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.
| 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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.io.DataInput |
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
cf
protected org.apache.derby.iapi.services.loader.ClassFactory cf
errorInfo
private ErrorInfo errorInfo
myNestedException
private java.lang.Exception myNestedException
FormatIdInputStream
public FormatIdInputStream(java.io.InputStream in)
- Constructor for a FormatIdInputStream
readObject
public java.lang.Object readObject()
throws java.io.IOException,
java.lang.ClassNotFoundException
- Read an object from this stream.
- Specified by:
readObject in interface java.io.ObjectInput
setInput
public void setInput(java.io.InputStream in)
- Set the InputStream for this FormatIdInputStream to the stream
provided.
getInputStream
public java.io.InputStream getInputStream()
getErrorInfo
public java.lang.String getErrorInfo()
- Specified by:
getErrorInfo in interface ErrorObjectInput
getNestedException
public java.lang.Exception getNestedException()
- Specified by:
getNestedException in interface ErrorObjectInput
setErrorInfo
private void setErrorInfo(ErrorInfo ei)
getClassFactory
org.apache.derby.iapi.services.loader.ClassFactory getClassFactory()
getObjectStream
private java.io.ObjectInputStream getObjectStream()
throws java.io.IOException
resetStream
public void resetStream()
throws java.io.IOException,
org.apache.derby.iapi.error.StandardException
- Resetable interface
- Specified by:
resetStream in interface org.apache.derby.iapi.types.Resetable
initStream
public void initStream()
throws org.apache.derby.iapi.error.StandardException
- Description copied from interface:
org.apache.derby.iapi.types.Resetable
- Initialize. Needs to be called first, before a resetable stream can
be used.
- Specified by:
initStream in interface org.apache.derby.iapi.types.Resetable
closeStream
public void closeStream()
- Description copied from interface:
org.apache.derby.iapi.types.Resetable
- Close. Free resources (such as open containers and locks) associated
with the stream.
- Specified by:
closeStream in interface org.apache.derby.iapi.types.Resetable