Please see the documentation for FormatIdOutputStream for information about the streams format and capabilites.
| Modifier and Type | Field and Description |
|---|---|
| protected ClassFactory | |
| private ErrorInfo | |
| private Exception |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | cloneStream()
Implements org. Clone the stream. |
| public void | |
| pack-priv ClassFactory | |
| private static Context | getContextOrNull(final String contextID)
Must be private so that user code can't call this entry point. |
| public String | |
| public InputStream | |
| public Exception | |
| private ObjectInputStream | |
| private < the type of exception that was thrown T extends Throwable> T | Returns: the thrown exceptionthe thrown exception cause, ObjectInputStream the stream from which the exception was thrown stream)Handle an error that happened within |
| public void | |
| public Object | Returns: The read object.Implements java. Read an object from this stream. |
| public void | resetStream()
Implements org. Reset the stream to the beginning. |
| private void | |
| public void | setInput(InputStream
The new input stream. in)Set the InputStream for this FormatIdInputStream to the stream provided. |
| cf | back to summary |
|---|---|
| protected ClassFactory cf | |
| errorInfo | back to summary |
|---|---|
| private ErrorInfo errorInfo | |
| myNestedException | back to summary |
|---|---|
| private Exception myNestedException | |
| FormatIdInputStream | back to summary |
|---|---|
| public FormatIdInputStream(InputStream in) Constructor for a FormatIdInputStream
| |
| cloneStream | back to summary |
|---|---|
| public InputStream cloneStream() Implements org. Doc from org. Clone the stream. To 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.
| |
| closeStream | back to summary |
|---|---|
| public void closeStream() Implements org. Doc from org. Close. Free resources (such as open containers and locks) associated with the stream.
| |
| getClassFactory | back to summary |
|---|---|
| pack-priv ClassFactory getClassFactory() | |
| getContextOrNull | back to summary |
|---|---|
| private static Context getContextOrNull(final String contextID) Must be private so that user code can't call this entry point. | |
| getErrorInfo | back to summary |
|---|---|
| public String getErrorInfo() Implements org. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() | |
| getNestedException | back to summary |
|---|---|
| public Exception getNestedException() Implements org. | |
| getObjectStream | back to summary |
|---|---|
| private ObjectInputStream getObjectStream() throws IOException | |
| handleReadError | back to summary |
|---|---|
| private <T extends Throwable> T handleReadError(T cause, ObjectInputStream stream) Handle an error that happened within
| |
| initStream | back to summary |
|---|---|
| public void initStream() throws StandardException Implements org. Doc from org. Initialize. Needs to be called first, before a resetable stream can be used.
| |
| readObject | back to summary |
|---|---|
| public Object readObject() throws IOException, ClassNotFoundException Implements java. Read an object from this stream.
| |
| resetStream | back to summary |
|---|---|
| public void resetStream() throws IOException, StandardException Implements org. Doc from org. Reset the stream to the beginning.
| |
| setErrorInfo | back to summary |
|---|---|
| private void setErrorInfo(ErrorInfo ei) | |
| setInput | back to summary |
|---|---|
| public void setInput(InputStream in) Set the InputStream for this FormatIdInputStream to the stream provided.
| |