com.ximpleware.extended
Interface IByteBuffer

All Known Implementing Classes:
XMLBuffer, XMLMemMappedBuffer

public interface IByteBuffer

Abstract XML document storage interface.


Method Summary
 byte byteAt(long 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.
 long length()
          Total size in terms of # of bytes.
 void writeToFileOutputStream(FileOutputStream ost, long offset, long length)
           
 

Method Detail

byteAt

byte byteAt(long 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

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

Returns:
long

getBytes

byte[] getBytes()

writeToFileOutputStream

void writeToFileOutputStream(FileOutputStream ost,
                             long offset,
                             long length)
                             throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.