php.java.bridge
Class HexOutputBuffer

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by php.java.bridge.HexOutputBuffer
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Direct Known Subclasses:
Base64EncodingOutputBuffer

 class HexOutputBuffer
extends java.io.ByteArrayOutputStream

numbers are base 16


Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
count
 
Constructor Summary
HexOutputBuffer(JavaBridge bridge)
           
 
Method Summary
protected  void append(byte[] s)
           
protected  void append(double d)
          append a double value, base 10 for now (not every C compiler supports the C99 "a" conversion)
protected  void append(long i)
          append an unsigned long number
protected  void appendLong(long l)
          append a long number
protected  void appendQuoted(byte[] s)
           
protected  void appendQuoted(java.lang.String s)
           
protected  void appendString(byte[] s)
          append a string
protected  byte[] getFirstBytes()
           
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HexOutputBuffer

HexOutputBuffer(JavaBridge bridge)
Method Detail

getFirstBytes

protected byte[] getFirstBytes()

append

protected void append(byte[] s)

appendQuoted

protected void appendQuoted(byte[] s)

appendQuoted

protected void appendQuoted(java.lang.String s)

append

protected void append(long i)
append an unsigned long number


append

protected void append(double d)
append a double value, base 10 for now (not every C compiler supports the C99 "a" conversion)


appendLong

protected void appendLong(long l)
append a long number


appendString

protected void appendString(byte[] s)
append a string