Package org.fife.ui.hex
Class ByteBuffer
- java.lang.Object
-
- org.fife.ui.hex.ByteBuffer
-
public class ByteBuffer extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteBuffer(int size)
ByteBuffer(File file)
ByteBuffer(InputStream in)
ByteBuffer(String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBuffer()
byte
getByte(int offset)
int
getSize()
void
insertByte(int offset, byte b)
void
insertBytes(int offs, byte[] b)
int
read(int offset, byte[] buf)
void
remove(int offset, int len)
void
remove(int offset, int len, byte[] removed)
void
setByte(int offset, byte b)
-
-
-
Constructor Detail
-
ByteBuffer
public ByteBuffer(int size)
-
ByteBuffer
public ByteBuffer(String file) throws IOException
- Throws:
IOException
-
ByteBuffer
public ByteBuffer(File file) throws IOException
- Throws:
IOException
-
ByteBuffer
public ByteBuffer(InputStream in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getByte
public byte getByte(int offset)
-
getSize
public int getSize()
-
insertByte
public void insertByte(int offset, byte b)
-
insertBytes
public void insertBytes(int offs, byte[] b)
-
read
public int read(int offset, byte[] buf)
-
remove
public void remove(int offset, int len)
-
remove
public void remove(int offset, int len, byte[] removed)
-
setByte
public void setByte(int offset, byte b)
-
getBuffer
public byte[] getBuffer()
-
-