static class InternalClobTest.FakeStoreStream
extends java.io.InputStream
implements org.apache.derby.iapi.types.Resetable
Note that it is made such that init must be called before using the stream, or after close, or else a NPE will be thrown.
| Modifier and Type | Field and Description |
|---|---|
private static ByteAlphabet |
ALPHABET |
private int |
encodedLengthRemaining |
private int |
eofMarkerRemaining |
private long |
length |
private LoopingAlphabetStream |
stream |
| Constructor and Description |
|---|
FakeStoreStream(long length) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeStream() |
void |
initStream() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
resetStream() |
private static final ByteAlphabet ALPHABET
private LoopingAlphabetStream stream
private final long length
private int encodedLengthRemaining
private int eofMarkerRemaining
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void resetStream()
throws java.io.IOException,
org.apache.derby.iapi.error.StandardException
resetStream in interface org.apache.derby.iapi.types.Resetablejava.io.IOExceptionorg.apache.derby.iapi.error.StandardExceptionpublic void initStream()
throws org.apache.derby.iapi.error.StandardException
initStream in interface org.apache.derby.iapi.types.Resetableorg.apache.derby.iapi.error.StandardExceptionpublic void closeStream()
closeStream in interface org.apache.derby.iapi.types.ResetableApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.