|
|||||||||
| 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 | |
|---|---|
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()
Resetable interface |
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
resetStream in interface Resetablejava.io.IOException
StandardException
public void initStream()
throws StandardException
Resetable
initStream in interface ResetableStandardExceptionpublic void closeStream()
Resetable
closeStream in interface Resetable
|
Built on Thu 2008-08-14 18:45:39-0700, from revision 686102 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||