public class RingByteBuffer extends Object
| Constructor and Description |
|---|
RingByteBuffer(int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
append(byte[] data) |
protected int |
checkBytes(int pos,
byte[] sig) |
static int |
containsAt(byte[] buffer,
int off,
byte[] sig) |
static InputStream |
createStream(String str) |
int |
find(byte[] signature,
int offset) |
byte[] |
getBuffer() |
byte |
getByte(int i) |
long |
getBytesRead() |
static String |
getHex(byte[] bytes,
int len) |
static String |
getHex(byte[] bytes,
int off,
int len) |
int |
getRemaining() |
static void |
main(String[] args) |
long |
read(InputStream in) |
public int getRemaining()
public long getBytesRead()
public byte getByte(int i)
public long read(InputStream in) throws Exception
Exceptionpublic int append(byte[] data)
throws IOException
IOExceptionpublic int find(byte[] signature,
int offset)
public byte[] getBuffer()
protected int checkBytes(int pos,
byte[] sig)
public static int containsAt(byte[] buffer,
int off,
byte[] sig)
public static String getHex(byte[] bytes, int len)
public static String getHex(byte[] bytes, int off, int len)
public static InputStream createStream(String str)
Copyright © 2015. All rights reserved.