com.devexperts.qd.util
Class ByteArrayDataOutput

java.lang.Object
  extended by com.devexperts.qd.util.ByteArrayBuffer
      extended by com.devexperts.qd.util.ByteArrayDataOutput
All Implemented Interfaces:
java.io.DataOutput, java.io.Serializable

Deprecated. Use ByteArrayOutput class instead.

@Deprecated
public class ByteArrayDataOutput
extends ByteArrayBuffer
implements java.io.DataOutput

The ByteArrayDataOutput implements DataOutput interface using byte array buffer.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.devexperts.qd.util.ByteArrayBuffer
buffer, limit, position
 
Constructor Summary
ByteArrayDataOutput()
          Deprecated.  
 
Method Summary
 byte[] toByteArray()
          Deprecated. Returns full copy of bytes buffer from zero to current position.
 void write(byte[] b)
          Deprecated.  
 void write(byte[] b, int off, int len)
          Deprecated.  
 void write(int b)
          Deprecated.  
 void writeBoolean(boolean v)
          Deprecated.  
 void writeByte(int v)
          Deprecated.  
 void writeBytes(java.lang.String str)
          Deprecated.  
 void writeChar(int v)
          Deprecated.  
 void writeChars(java.lang.String str)
          Deprecated.  
 void writeDouble(double v)
          Deprecated.  
 void writeFloat(float v)
          Deprecated.  
 void writeInt(int v)
          Deprecated.  
 void writeLong(long v)
          Deprecated.  
 void writeShort(int v)
          Deprecated.  
 void writeUTF(java.lang.String str)
          Deprecated.  
 
Methods inherited from class com.devexperts.qd.util.ByteArrayBuffer
clear, copy, ensureCapacity, expandLimit, getBuffer, getLimit, getPosition, setBuffer, setLimit, setPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayDataOutput

public ByteArrayDataOutput()
Deprecated. 
Method Detail

toByteArray

public byte[] toByteArray()
Deprecated. 
Returns full copy of bytes buffer from zero to current position.

Returns:
full copy of bytes buffer from zero to current position.

write

public void write(int b)
           throws java.io.IOException
Deprecated. 
Specified by:
write in interface java.io.DataOutput
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Deprecated. 
Specified by:
write in interface java.io.DataOutput
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Deprecated. 
Specified by:
write in interface java.io.DataOutput
Throws:
java.io.IOException

writeBoolean

public void writeBoolean(boolean v)
                  throws java.io.IOException
Deprecated. 
Specified by:
writeBoolean in interface java.io.DataOutput
Throws:
java.io.IOException

writeByte

public void writeByte(int v)
               throws java.io.IOException
Deprecated. 
Specified by:
writeByte in interface java.io.DataOutput
Throws:
java.io.IOException

writeShort

public void writeShort(int v)
                throws java.io.IOException
Deprecated. 
Specified by:
writeShort in interface java.io.DataOutput
Throws:
java.io.IOException

writeChar

public void writeChar(int v)
               throws java.io.IOException
Deprecated. 
Specified by:
writeChar in interface java.io.DataOutput
Throws:
java.io.IOException

writeInt

public void writeInt(int v)
              throws java.io.IOException
Deprecated. 
Specified by:
writeInt in interface java.io.DataOutput
Throws:
java.io.IOException

writeLong

public void writeLong(long v)
               throws java.io.IOException
Deprecated. 
Specified by:
writeLong in interface java.io.DataOutput
Throws:
java.io.IOException

writeFloat

public void writeFloat(float v)
                throws java.io.IOException
Deprecated. 
Specified by:
writeFloat in interface java.io.DataOutput
Throws:
java.io.IOException

writeDouble

public void writeDouble(double v)
                 throws java.io.IOException
Deprecated. 
Specified by:
writeDouble in interface java.io.DataOutput
Throws:
java.io.IOException

writeBytes

public void writeBytes(java.lang.String str)
                throws java.io.IOException
Deprecated. 
Specified by:
writeBytes in interface java.io.DataOutput
Throws:
java.io.IOException

writeChars

public void writeChars(java.lang.String str)
                throws java.io.IOException
Deprecated. 
Specified by:
writeChars in interface java.io.DataOutput
Throws:
java.io.IOException

writeUTF

public void writeUTF(java.lang.String str)
              throws java.io.IOException
Deprecated. 
Specified by:
writeUTF in interface java.io.DataOutput
Throws:
java.io.IOException