Secure iNet Factory

com.jscape.util
Class Buffer

java.lang.Object
  extended by com.jscape.util.Buffer

public final class Buffer
extends java.lang.Object

Version:
1.0
Author:
Alex
See Also:
Source code

Constructor Summary
Buffer(int capacity)
           
 
Method Summary
 void allocate(int size)
           
 Buffer append(byte data)
           
 Buffer append(byte[] data)
           
 Buffer append(byte[] data, int off, int len)
           
 int available()
           
 Buffer delete(int startIndex)
           
 Buffer delete(int startIndex, int endIndex)
           
 boolean endsWith(byte[] data)
           
 byte get(int index)
           
 byte[] getBuffer()
           
 int getCapacity()
           
 int getLength()
           
 int indexOf(byte value)
           
 Buffer insert(int index, byte[] data, int off, int len)
           
 int lastIndexOf(byte value)
           
 void reset()
           
 Buffer reverse()
           
 void set(byte[] buf, int offset, int len, int index)
           
 void set(byte data, int index)
           
 void setLength(int value)
           
 boolean startsWith(byte[] data)
           
 byte[] toByteArray()
           
 byte[] toByteArray(int offset, int length)
           
 java.lang.String toString(int offset, int len, java.lang.String charset)
           
 java.lang.String toString(int offset, java.lang.String charset)
           
 java.lang.String toString(java.lang.String charset)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Buffer

public Buffer(int capacity)
Method Detail

getBuffer

public byte[] getBuffer()

getLength

public int getLength()

getCapacity

public int getCapacity()

setLength

public void setLength(int value)

available

public int available()

allocate

public void allocate(int size)

append

public Buffer append(byte data)

append

public Buffer append(byte[] data,
                     int off,
                     int len)

append

public Buffer append(byte[] data)

insert

public Buffer insert(int index,
                     byte[] data,
                     int off,
                     int len)

get

public byte get(int index)

set

public void set(byte data,
                int index)

set

public void set(byte[] buf,
                int offset,
                int len,
                int index)

startsWith

public boolean startsWith(byte[] data)

endsWith

public boolean endsWith(byte[] data)

indexOf

public int indexOf(byte value)

lastIndexOf

public int lastIndexOf(byte value)

delete

public Buffer delete(int startIndex)

delete

public Buffer delete(int startIndex,
                     int endIndex)

reverse

public Buffer reverse()

reset

public void reset()

toByteArray

public byte[] toByteArray(int offset,
                          int length)

toByteArray

public byte[] toByteArray()

toString

public java.lang.String toString(int offset,
                                 int len,
                                 java.lang.String charset)

toString

public java.lang.String toString(int offset,
                                 java.lang.String charset)

toString

public java.lang.String toString(java.lang.String charset)

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved