org.apache.derby.impl.drda
Class FailingEXTDTAInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.derby.impl.drda.FailingEXTDTAInputStream
All Implemented Interfaces:
java.io.Closeable

public final class FailingEXTDTAInputStream
extends java.io.InputStream

A stream class that throws an exception on the first read request.


Field Summary
private  byte extdtaStatus
          The status byte used to determine which exception to throw.
 
Constructor Summary
FailingEXTDTAInputStream(byte extdtaStatus)
           
 
Method Summary
 int read()
          Throws an exception.
 
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

extdtaStatus

private final byte extdtaStatus
The status byte used to determine which exception to throw.

Constructor Detail

FailingEXTDTAInputStream

public FailingEXTDTAInputStream(byte extdtaStatus)
Method Detail

read

public int read()
         throws java.io.IOException
Throws an exception.

Specified by:
read in class java.io.InputStream
Returns:
n/a
Throws:
java.io.IOException - The exception to throw as dictated by the status byte sent by the client driver when reading user data and sending it as EXTDTA.

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

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