org.apache.derby.impl.jdbc
Class BinaryToRawStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.apache.derby.impl.jdbc.BinaryToRawStream
All Implemented Interfaces:
java.io.Closeable
Direct Known Subclasses:
AutoPositioningStream

 class BinaryToRawStream
extends java.io.FilterInputStream

Converts a stream containing the Derby stored binary form to one that just contains the application's data. Simply read and save the length information.


Field Summary
private  int length
          Length of the value represented by this stream.
private  java.lang.Object parent
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
BinaryToRawStream(java.io.InputStream in, java.lang.Object parent)
           
 
Method Summary
(package private)  int getLength()
          Return the length of the value in thie stream in bytes.
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

private int length
Length of the value represented by this stream. Set to -1 if the length is unknown.


parent

private java.lang.Object parent
Constructor Detail

BinaryToRawStream

BinaryToRawStream(java.io.InputStream in,
                  java.lang.Object parent)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getLength

int getLength()
Return the length of the value in thie stream in bytes. If the value is unknown then -1 is returned.


Built on Thu 2012-03-29 21:53:33+0000, from revision ???

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