class Delta.TargetState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.nio.channels.ReadableByteChannel |
c |
private boolean |
eof |
private long |
hash |
private boolean |
hashReset |
private java.nio.ByteBuffer |
sbuf |
private java.nio.ByteBuffer |
tbuf |
Constructor and Description |
---|
TargetState(java.io.InputStream targetIS) |
Modifier and Type | Method and Description |
---|---|
private void |
append(java.lang.StringBuffer sb,
int value) |
private int |
blocksize() |
private java.lang.String |
dump() |
private java.lang.String |
dump(java.nio.ByteBuffer bb) |
boolean |
eof() |
int |
find(Delta.SourceState source)
Returns the index of the next N bytes of the stream.
|
java.lang.String |
getTextDump(java.nio.ByteBuffer bb) |
(package private) void |
hash() |
int |
longestMatch(Delta.SourceState source)
Returns the longest match length at the source location.
|
int |
read()
Reads a byte.
|
private void |
readMore() |
java.lang.String |
toString()
Returns a debug
String . |
private java.nio.channels.ReadableByteChannel c
private java.nio.ByteBuffer tbuf
private java.nio.ByteBuffer sbuf
private long hash
private boolean hashReset
private boolean eof
TargetState(java.io.InputStream targetIS) throws java.io.IOException
java.io.IOException
private int blocksize()
public int find(Delta.SourceState source) throws java.io.IOException
java.io.IOException
public boolean eof()
public int read() throws java.io.IOException
java.io.IOException
public int longestMatch(Delta.SourceState source) throws java.io.IOException
java.io.IOException
private void readMore() throws java.io.IOException
java.io.IOException
void hash()
public java.lang.String toString()
String
.toString
in class java.lang.Object
private java.lang.String dump()
private java.lang.String dump(java.nio.ByteBuffer bb)
private void append(java.lang.StringBuffer sb, int value)
public java.lang.String getTextDump(java.nio.ByteBuffer bb)