- java.lang.Object
-
- java.io.InputStream
-
- org.apache.derbyTesting.functionTests.util.TestInputStream
-
-
Field Summary
Fields
Modifier and Type |
Field and Description |
(package private) long |
length
Length of stream
|
private long |
pos
Current position in stream
|
(package private) int |
value
Value to return
|
-
Constructor Summary
Constructors
Constructor and Description |
TestInputStream(long length,
int value)
Constructor for TestInputStream
|
-
Method Summary
Methods
Modifier and Type |
Method and Description |
int |
read()
Implementation of InputStream.read().
|
-
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
-
value
final int value
Value to return
-
length
final long length
Length of stream
-
Method Detail
-
read
public int read()
throws java.io.IOException
Implementation of InputStream.read(). Returns
the value specified in constructor, unless the
end of the stream has been reached.
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
Built on Wed 2014-10-15 18:23:42+0000, from revision ???
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.