com.ximpleware
Class UniByteBuffer

java.lang.Object
  extended by com.ximpleware.UniByteBuffer
All Implemented Interfaces:
IByteBuffer

public class UniByteBuffer
extends Object
implements IByteBuffer

A simple wrapper around monolithic byte array implementing IByteBuffer interface. Creation date: (11/25/03 5:05:57 PM)


Constructor Summary
UniByteBuffer(byte[] b)
          UniByteBuffer constructor comment.
 
Method Summary
 byte byteAt(int index)
          Get the byte at the index.
 byte[] getBytes()
          Return the byte array containing the original XML document
 byte[] getBytes(int offset, int len)
          Return the token in its original encoding format.
 int length()
          Get total size in terms of # of bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniByteBuffer

public UniByteBuffer(byte[] b)
UniByteBuffer constructor comment.

Throws:
IllegalArguement - when b is a null pointer
Method Detail

byteAt

public final byte byteAt(int index)
Get the byte at the index. Creation date: (11/25/03 5:07:42 PM)

Specified by:
byteAt in interface IByteBuffer
Parameters:
index - int
Returns:
byte

getBytes

public final byte[] getBytes(int offset,
                             int len)
Return the token in its original encoding format. Creation date: (11/28/03 7:02:07 PM)

Specified by:
getBytes in interface IByteBuffer
Parameters:
offset - int
len - int
Returns:
byte[]

length

public int length()
Get total size in terms of # of bytes. Creation date: (11/25/03 5:13:10 PM)

Specified by:
length in interface IByteBuffer
Returns:
int

getBytes

public byte[] getBytes()
Return the byte array containing the original XML document

Specified by:
getBytes in interface IByteBuffer
Returns:
byte[]


Copyright © 2013. All Rights Reserved.