Package org.fife.ui.hex
Class ByteBuffer
- java.lang.Object
-
- org.fife.ui.hex.ByteBuffer
-
public class ByteBuffer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]buffer
-
Constructor Summary
Constructors Constructor Description ByteBuffer(int size)ByteBuffer(java.io.File file)ByteBuffer(java.io.InputStream in)ByteBuffer(java.lang.String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBuffer()bytegetByte(int offset)intgetSize()voidinsertByte(int offset, byte b)voidinsertBytes(int offs, byte[] b)intread(int offset, byte[] buf)voidremove(int offset, int len)voidremove(int offset, int len, byte[] removed)voidsetByte(int offset, byte b)
-
-
-
Constructor Detail
-
ByteBuffer
public ByteBuffer(int size)
-
ByteBuffer
public ByteBuffer(java.lang.String file) throws java.io.IOException- Throws:
java.io.IOException
-
ByteBuffer
public ByteBuffer(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
ByteBuffer
public ByteBuffer(java.io.InputStream in) throws java.io.IOException- Throws:
java.io.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()
-
-