ca.idms.io
Class LoDataOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by ca.idms.io.NativeDataOutputStream
              extended by ca.idms.io.LoDataOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.DataOutput, java.io.Flushable

public class LoDataOutputStream
extends NativeDataOutputStream

LoDataOutputStream writes numeric types in the low byte first ordering native to the Intel X86 architecture.

Since:
CA IDMS Server 4.2
Version:
2.00, 12/14/99
Author:
Dave Ross
See Also:
NativeDataOutputStream

Field Summary
 
Fields inherited from class ca.idms.io.NativeDataOutputStream
dos, fmt
 
Fields inherited from class java.io.FilterOutputStream
out
 
Method Summary
 void writeChar(int v)
          Writes a char to the underlying output stream as two bytes, low byte first.
 void writeInt(int v)
          Writes an int to the underlying output stream as four bytes, low byte first.
 void writeLong(long v)
          Writes a long to the underlying output stream as eight bytes, low byte first.
 void writeShort(int v)
          Writes a short to the underlying output stream as two bytes, low byte first.
 
Methods inherited from class ca.idms.io.NativeDataOutputStream
getBuffer, getCount, getFormat, setBuffer, setCount, setSize, snap, toCharArray, write, writeBoolean, writeByte, writeBytes, writeBytes, writeBytesInternal, writeBytesVariable, writeChars, writeDouble, writeFloat, writeGraphic, writeNulls, writePacked, writeUTF, writeZoned
 
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataOutput
write, write
 

Method Detail

writeShort

public void writeShort(int v)
                throws java.io.IOException
Writes a short to the underlying output stream as two bytes, low byte first.

Specified by:
writeShort in interface java.io.DataOutput
Overrides:
writeShort in class NativeDataOutputStream
Parameters:
v - a short to be written.
Throws:
java.io.IOException - if an I/O error occurs.

writeChar

public void writeChar(int v)
               throws java.io.IOException
Writes a char to the underlying output stream as two bytes, low byte first.

Specified by:
writeChar in interface java.io.DataOutput
Overrides:
writeChar in class NativeDataOutputStream
Parameters:
v - a char value to be written.
Throws:
java.io.IOException - if an I/O error occurs.

writeInt

public void writeInt(int v)
              throws java.io.IOException
Writes an int to the underlying output stream as four bytes, low byte first.

Specified by:
writeInt in interface java.io.DataOutput
Overrides:
writeInt in class NativeDataOutputStream
Parameters:
v - an int to be written.
Throws:
java.io.IOException - if an I/O error occurs.

writeLong

public void writeLong(long v)
               throws java.io.IOException
Writes a long to the underlying output stream as eight bytes, low byte first.

Specified by:
writeLong in interface java.io.DataOutput
Overrides:
writeLong in class NativeDataOutputStream
Parameters:
v - a long to be written.
Throws:
java.io.IOException - if an I/O error occurs.


Copyright © 2009 CA, All rights reserved