org.sourcejammer.server.make
Class BytesToAddStreamer

java.lang.Object
  |
  +--org.sourcejammer.server.make.BytesToAddStreamer

public class BytesToAddStreamer
extends java.lang.Object

Title: SourceJammer 1.2 Description: Copyright: Copyright (c) 2002 Company: SourceJammer Project

Version:
1.0
Author:
Robert MacGrogan

Field Summary
private  int fileIndex
           
 int fileSize
           
static int MAX_BYTE_ARRAY_SIZE
           
private  java.io.File source
           
private  java.io.FileInputStream stmIn
           
 
Constructor Summary
BytesToAddStreamer(java.io.File source)
           
 
Method Summary
private  void advanceFileToIndex(int index)
           
 void close()
           
protected  void finailze()
           
 byte[] retrieveBytes(int beginIndex, int length)
           
private  byte[] retrieveRemainingBytes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

private java.io.File source

stmIn

private java.io.FileInputStream stmIn

fileIndex

private int fileIndex

MAX_BYTE_ARRAY_SIZE

public static final int MAX_BYTE_ARRAY_SIZE
See Also:
Constant Field Values

fileSize

public int fileSize
Constructor Detail

BytesToAddStreamer

public BytesToAddStreamer(java.io.File source)
                   throws java.io.IOException
Method Detail

retrieveBytes

public byte[] retrieveBytes(int beginIndex,
                            int length)
                     throws java.lang.IndexOutOfBoundsException,
                            java.io.IOException
java.lang.IndexOutOfBoundsException
java.io.IOException

retrieveRemainingBytes

private byte[] retrieveRemainingBytes()
                               throws java.lang.IndexOutOfBoundsException,
                                      java.io.IOException
java.lang.IndexOutOfBoundsException
java.io.IOException

advanceFileToIndex

private void advanceFileToIndex(int index)
                         throws java.io.IOException
java.io.IOException

close

public void close()
           throws java.io.IOException
java.io.IOException

finailze

protected void finailze()
                 throws java.lang.Throwable
java.lang.Throwable


Copyright © 2003 Soucejammer project.