org.apache.derbyTesting.unitTests.junit
Class CharacterStreamDescriptorTest.PositionedTestStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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
           
 
Constructor Summary
CharacterStreamDescriptorTest.PositionedTestStream(long pos)
           
 
Method Summary
 java.io.InputStream asInputStream()
           
 long getPosition()
           
 int read()
           
 void reposition(long requestedPos)
           
 
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
 

Field Detail

pos

private final long pos
Constructor Detail

CharacterStreamDescriptorTest.PositionedTestStream

CharacterStreamDescriptorTest.PositionedTestStream(long pos)
Method Detail

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

Built on Sat 2009-11-28 18:44:18-0800, from revision 885187

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.