TER.TERdecoder.ReadFile
Class ReadBufferedStream

java.lang.Object
  extended by GiciStream.BufferedDataInputStream
      extended by TER.TERdecoder.ReadFile.ReadBufferedStream
All Implemented Interfaces:
java.io.DataInput

public class ReadBufferedStream
extends BufferedDataInputStream


Field Summary
(package private)  byte bytebuffer
           
(package private)  int bytePossition
           
(package private)  long counter
           
 
Constructor Summary
ReadBufferedStream(byte[] source)
           
ReadBufferedStream(java.lang.String inputFile)
           
 
Method Summary
 void clearByte()
           
 boolean getBit()
           
 int getBits(int length)
           
 int getBytePossition()
           
 long getCounter()
           
 long getRemaniningBytes()
           
 long getTotalBytes()
           
 void restartCounter()
           
 
Methods inherited from class GiciStream.BufferedDataInputStream
available, close, getCapacity, getPos, length, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, skipBytes, skipBytes, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bytebuffer

byte bytebuffer

bytePossition

int bytePossition

counter

long counter
Constructor Detail

ReadBufferedStream

public ReadBufferedStream(java.lang.String inputFile)
                   throws java.lang.Exception
Throws:
java.lang.Exception

ReadBufferedStream

public ReadBufferedStream(byte[] source)
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getBit

public boolean getBit()
               throws java.lang.Exception
Throws:
java.lang.Exception

getBits

public int getBits(int length)
            throws java.lang.Exception
Throws:
java.lang.Exception

clearByte

public void clearByte()

restartCounter

public void restartCounter()

getCounter

public long getCounter()

getTotalBytes

public long getTotalBytes()

getRemaniningBytes

public long getRemaniningBytes()

getBytePossition

public int getBytePossition()


TER - Copyright (C) 2006
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Group on Interactive Coding of Images (GICI) - UAB (Spain)