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.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void resetStream() throws java.io.IOException, org.apache.derby.iapi.error.StandardException
resetStream
in interface org.apache.derby.iapi.types.Resetable
java.io.IOException
org.apache.derby.iapi.error.StandardException
public void initStream() throws org.apache.derby.iapi.error.StandardException
initStream
in interface org.apache.derby.iapi.types.Resetable
org.apache.derby.iapi.error.StandardException
public void closeStream()
closeStream
in interface org.apache.derby.iapi.types.Resetable
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.