com.ximpleware
Interface IByteBuffer

All Known Implementing Classes:
UniByteBuffer

public interface IByteBuffer

Abstract XML document storage interface.


Method Summary
 byte byteAt(int index)
          Get the byte at the given index of the underlying byte storage.
 byte[] getBytes()
           
 byte[] getBytes(int offset, int len)
          Return a byte array filled with content from underlying byte storage.
 int length()
          Total size in terms of # of bytes.
 

Method Detail

byteAt

byte byteAt(int index)
Get the byte at the given index of the underlying byte storage.

Returns:
byte

getBytes

byte[] getBytes(int offset,
                int len)
Return a byte array filled with content from underlying byte storage.

Parameters:
offset - int bytes offset (not UTF char unit)
len - int
Returns:
byte[]

length

int length()
Total size in terms of # of bytes.

Returns:
int

getBytes

byte[] getBytes()


Copyright © 2013. All Rights Reserved.