|
SourceJammer 1.2.0.1 May 20, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.server.make.ByteArrayChunkCompare | +--org.sourcejammer.server.make.BufferedChunkCompare
Constructor Summary | |
protected |
BufferedChunkCompare()
|
|
BufferedChunkCompare(java.io.File source,
boolean provideOutputBytes)
|
Method Summary | |
void |
close()
Returns number of bytes added. |
boolean |
equals(java.lang.Object o)
Tests if the current chunk of bytes in this ByteArrayChunkCompare object is equal to the current chunk of bytes in o . |
protected void |
finailze()
|
int |
firstUnmatchedByte(BufferedChunkCompare oCompare)
|
int |
getIndex()
|
int |
getSizeOfSource()
|
boolean |
nextByByte()
Advances the index of the byte array source by 1 byte. |
boolean |
nextByChunk()
Advances the index of the byte array source to the next byte chunk. |
byte[] |
retrieveBytes(int startIndex,
int length)
|
void |
setIndex(int index)
Explicitly sets the index value. |
void |
setIndex(int index,
boolean optimistic)
Explicitly sets the index value. |
void |
setTempName(java.lang.String s)
|
int |
size()
Returns the comparison size, or the number of bytes that will be compared when the equals() method is called. |
Methods inherited from class org.sourcejammer.server.make.ByteArrayChunkCompare |
getSource |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected BufferedChunkCompare()
public BufferedChunkCompare(java.io.File source, boolean provideOutputBytes) throws java.io.IOException, EndOfSourceException
Method Detail |
public void setTempName(java.lang.String s)
public byte[] retrieveBytes(int startIndex, int length) throws java.lang.IndexOutOfBoundsException, java.io.IOException
public boolean nextByChunk()
ByteArrayChunkCompare
nextByChunk
in class ByteArrayChunkCompare
org.sourcejammer.server.make.ByteArrayChunkCompare
true
if the index advanced successfully. false
if the end of the source byte array has been reached.public boolean nextByByte()
ByteArrayChunkCompare
nextByByte
in class ByteArrayChunkCompare
org.sourcejammer.server.make.ByteArrayChunkCompare
true
if the index advanced successfully. false
if the end of the source byte array has been reached.public void setIndex(int index) throws EndOfSourceException
setIndex
in class ByteArrayChunkCompare
EndOfSourceException
- -- Requested index is not in source byte array.public void setIndex(int index, boolean optimistic) throws EndOfSourceException
index
- -- the index to move to.optimistic
- -- means "discard before" value is not modified.EndOfSourceException
- -- Requested index is not in source byte array.public int getIndex()
getIndex
in class ByteArrayChunkCompare
public int size()
equals()
method is called.size
in class ByteArrayChunkCompare
public int getSizeOfSource()
getSizeOfSource
in class ByteArrayChunkCompare
public boolean equals(java.lang.Object o)
o
.equals
in class ByteArrayChunkCompare
public int firstUnmatchedByte(BufferedChunkCompare oCompare)
public void close() throws java.io.IOException
protected void finailze() throws java.lang.Throwable
|
SourceJammer 1.2.0.1 May 20, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |