org.knime.core.data.container
Class LongUTFDataInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.knime.core.data.container.LongUTFDataInputStream
All Implemented Interfaces:
Closeable, DataInput

public class LongUTFDataInputStream
extends InputStream
implements DataInput, Closeable

Input Stream that's used to read from stream written by LongUTFDataOuputStream.

Author:
wiswedel, University of Konstanz
See Also:
LongUTFDataOutputStream

Constructor Summary
LongUTFDataInputStream(DataInputStream input)
          Constructor that wraps a given input stream.
 
Method Summary
 int available()
          
 void close()
          
 int hashCode()
          
 void mark(int readlimit)
          
 boolean markSupported()
          
 int read()
          
 int read(byte[] b)
          
 int read(byte[] b, int off, int len)
          
 boolean readBoolean()
          
 byte readByte()
          
 char readChar()
          
 double readDouble()
          
 float readFloat()
          
 void readFully(byte[] b)
          
 void readFully(byte[] b, int off, int len)
          
 int readInt()
          
 String readLine()
          Deprecated. 
 long readLong()
          
 short readShort()
          
 int readUnsignedByte()
          
 int readUnsignedShort()
          
 String readUTF()
          
 void reset()
          
 long skip(long n)
          
 int skipBytes(int n)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongUTFDataInputStream

public LongUTFDataInputStream(DataInputStream input)
Constructor that wraps a given input stream.

Parameters:
input - The input stream to read from.
Method Detail

available

public int available()
              throws IOException

Overrides:
available in class InputStream
Throws:
IOException

close

public void close()
           throws IOException

Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException

hashCode

public int hashCode()

Overrides:
hashCode in class Object

mark

public void mark(int readlimit)

Overrides:
mark in class InputStream

markSupported

public boolean markSupported()

Overrides:
markSupported in class InputStream

read

public int read()
         throws IOException

Specified by:
read in class InputStream
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException

Overrides:
read in class InputStream
Throws:
IOException

read

public int read(byte[] b)
         throws IOException

Overrides:
read in class InputStream
Throws:
IOException

readBoolean

public boolean readBoolean()
                    throws IOException

Specified by:
readBoolean in interface DataInput
Throws:
IOException

readByte

public byte readByte()
              throws IOException

Specified by:
readByte in interface DataInput
Throws:
IOException

readChar

public char readChar()
              throws IOException

Specified by:
readChar in interface DataInput
Throws:
IOException

readDouble

public double readDouble()
                  throws IOException

Specified by:
readDouble in interface DataInput
Throws:
IOException

readFloat

public float readFloat()
                throws IOException

Specified by:
readFloat in interface DataInput
Throws:
IOException

readFully

public void readFully(byte[] b,
                      int off,
                      int len)
               throws IOException

Specified by:
readFully in interface DataInput
Throws:
IOException

readFully

public void readFully(byte[] b)
               throws IOException

Specified by:
readFully in interface DataInput
Throws:
IOException

readInt

public int readInt()
            throws IOException

Specified by:
readInt in interface DataInput
Throws:
IOException

readLine

@Deprecated
public String readLine()
                throws IOException
Deprecated. 

Specified by:
readLine in interface DataInput
Throws:
IOException

readLong

public long readLong()
              throws IOException

Specified by:
readLong in interface DataInput
Throws:
IOException

readShort

public short readShort()
                throws IOException

Specified by:
readShort in interface DataInput
Throws:
IOException

readUnsignedByte

public int readUnsignedByte()
                     throws IOException

Specified by:
readUnsignedByte in interface DataInput
Throws:
IOException

readUnsignedShort

public int readUnsignedShort()
                      throws IOException

Specified by:
readUnsignedShort in interface DataInput
Throws:
IOException

reset

public void reset()
           throws IOException

Overrides:
reset in class InputStream
Throws:
IOException

skip

public long skip(long n)
          throws IOException

Overrides:
skip in class InputStream
Throws:
IOException

skipBytes

public int skipBytes(int n)
              throws IOException

Specified by:
skipBytes in interface DataInput
Throws:
IOException

readUTF

public String readUTF()
               throws IOException

Specified by:
readUTF in interface DataInput
Throws:
IOException


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.