org.sourcejammer.server.make
Class ByteArrayBuffer
java.lang.Object
|
+--org.sourcejammer.server.make.ByteArrayBuffer
- public class ByteArrayBuffer
- extends java.lang.Object
Constructor Summary |
ByteArrayBuffer(java.io.FileInputStream stmIn,
int maxSize)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
private byte[] buffer
stmIn
private java.io.FileInputStream stmIn
bufferBeginIndex
private int bufferBeginIndex
bufferEndIndex
private int bufferEndIndex
maxSize
private int maxSize
ByteArrayBuffer
public ByteArrayBuffer(java.io.FileInputStream stmIn,
int maxSize)
throws java.io.IOException
readUpTo
public void readUpTo(int upToIndex)
throws java.io.IOException
java.io.IOException
sourceIndexToBufferIndex
public int sourceIndexToBufferIndex(int index)
bufferIndexToSourceIndex
public int bufferIndexToSourceIndex(int index)
getBuffer
public byte[] getBuffer()
beginIndex
public int beginIndex()
endIndex
public int endIndex()
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
java.lang.Throwable
close
public void close()
throws java.io.IOException
java.io.IOException
getNewBuffer
private byte[] getNewBuffer(int numBytesToKeep,
byte[] newBytes)
throws java.io.IOException
java.io.IOException
Copyright © 2003 Soucejammer project.