cryptix.tools
Class Scar.ScarInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--cryptix.tools.Scar.ScarInputStream
Enclosing class:
Scar

final class Scar.ScarInputStream
extends java.io.FilterInputStream


Field Summary
(package private)  PRZ24 crc
           
(package private)  boolean finished
           
(package private)  byte[] inBuf
           
(package private)  int inOff
           
(package private)  byte[] lineBuffer
           
(package private)  byte[] outBuf
           
(package private)  int outBufMax
           
(package private)  int outOff
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
Scar.ScarInputStream(java.io.InputStream is)
           
 
Method Summary
 void close()
          Override close in Base64InputStream to allow detection of scar footer line.
 int read()
           
 int read(byte[] buffer, int offset, int length)
           
 
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineBuffer

byte[] lineBuffer

finished

boolean finished

crc

PRZ24 crc

inBuf

byte[] inBuf

outBuf

byte[] outBuf

inOff

int inOff

outOff

int outOff

outBufMax

int outBufMax
Constructor Detail

Scar.ScarInputStream

public Scar.ScarInputStream(java.io.InputStream is)
                     throws java.io.IOException
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream

read

public int read(byte[] buffer,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream

close

public void close()
           throws java.io.IOException
Override close in Base64InputStream to allow detection of scar footer line. Basically munge lines until it gets to footer.
Overrides:
close in class java.io.FilterInputStream