com.github.libxjava.io
Class ByteArrayBuffer

java.lang.Object
  extended by com.github.libxjava.io.ByteArrayBuffer

public final class ByteArrayBuffer
extends Object

Version:
libxjava-cldc - 0.1
Author:
Marcel Patzlaff

Nested Class Summary
 class ByteArrayBuffer.Reader
           
 class ByteArrayBuffer.Writer
           
 
Constructor Summary
ByteArrayBuffer(int bufSize)
           
ByteArrayBuffer(int bufSize, long frameReadTimeout, long frameWriteTimeout)
           
 
Method Summary
 int capacity()
           
 ByteArrayBuffer.Reader getReader()
           
 ByteArrayBuffer.Writer getWriter()
           
protected  int internalAvailable()
           
protected  void internalCloseWriter()
           
protected  void internalMark(int readlimit)
           
protected  void internalMarkComplete()
           
protected  void internalMarkIncomplete()
           
protected  int internalRead(byte[] b, int off, int len)
           
protected  void internalReset()
           
protected  int internalSpace()
           
protected  void internalWrite(byte[] b, int off, int len)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayBuffer

public ByteArrayBuffer(int bufSize)

ByteArrayBuffer

public ByteArrayBuffer(int bufSize,
                       long frameReadTimeout,
                       long frameWriteTimeout)
Method Detail

capacity

public int capacity()

getReader

public ByteArrayBuffer.Reader getReader()

getWriter

public ByteArrayBuffer.Writer getWriter()

internalWrite

protected void internalWrite(byte[] b,
                             int off,
                             int len)
                      throws IOException
Throws:
IOException

internalCloseWriter

protected void internalCloseWriter()

internalMarkComplete

protected void internalMarkComplete()

internalMarkIncomplete

protected void internalMarkIncomplete()

internalRead

protected int internalRead(byte[] b,
                           int off,
                           int len)
                    throws IOException
Throws:
IOException

internalAvailable

protected int internalAvailable()

internalMark

protected void internalMark(int readlimit)

internalReset

protected void internalReset()
                      throws IOException
Throws:
IOException

internalSpace

protected int internalSpace()


Copyright © 2010 Marcel Patzlaff. All Rights Reserved.