org.apache.derbyTesting.unitTests.junit
Class CharacterStreamDescriptorTest.PositionedTestStream
java.lang.Object
java.io.InputStream
org.apache.derbyTesting.unitTests.junit.CharacterStreamDescriptorTest.PositionedTestStream
- All Implemented Interfaces:
- java.io.Closeable, org.apache.derby.iapi.types.PositionedStream
- Enclosing class:
- CharacterStreamDescriptorTest
private static class CharacterStreamDescriptorTest.PositionedTestStream
- extends java.io.InputStream
- implements org.apache.derby.iapi.types.PositionedStream
A test stream that implements the PositionedStream interface.
The stream is not functional, it always returns -1.
|
Field Summary |
private long |
pos
|
| Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pos
private final long pos
CharacterStreamDescriptorTest.PositionedTestStream
CharacterStreamDescriptorTest.PositionedTestStream(long pos)
read
public int read()
throws java.io.IOException
- Specified by:
read in class java.io.InputStream
- Throws:
java.io.IOException
asInputStream
public java.io.InputStream asInputStream()
- Specified by:
asInputStream in interface org.apache.derby.iapi.types.PositionedStream
getPosition
public long getPosition()
- Specified by:
getPosition in interface org.apache.derby.iapi.types.PositionedStream
reposition
public void reposition(long requestedPos)
throws java.io.IOException,
org.apache.derby.iapi.error.StandardException
- Specified by:
reposition in interface org.apache.derby.iapi.types.PositionedStream
- Throws:
java.io.IOException
org.apache.derby.iapi.error.StandardException
Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.