ca.idms.io
Class FloDataInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by ca.idms.io.NativeDataInputStream
              extended by ca.idms.io.FloDataInputStream
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput

public class FloDataInputStream
extends NativeDataInputStream

FloDataOutputStream reads floating point types in the format native to the IBM S390 (370) architecture.

Since:
CA IDMS Server 4.2 OS/390 Edition
Version:
1.20, 01/31/03
Author:
Dave Ross

Field Summary
 
Fields inherited from class ca.idms.io.NativeDataInputStream
dis, fmt
 
Fields inherited from class java.io.FilterInputStream
in
 
Method Summary
 double readDouble()
          Reads an OS/390 format double from the underlying data input stream and converts it to IEEE format.
 float readFloat()
          Reads an OS/390 format float from the underlying data input stream and converts it to IEEE format.
 
Methods inherited from class ca.idms.io.NativeDataInputStream
getBuffer, getCount, getFormat, getPosition, readBoolean, readByte, readBytes, readBytesInternal, readBytesKatakana, readChar, readFully, readFully, readGraphic, readInt, readLine, readLong, readPacked, readShort, readUnsignedByte, readUnsignedShort, readUTF, readZoned, setSize, skipBytes, snap, toBigDecimal
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readFloat

public float readFloat()
                throws java.io.IOException
Reads an OS/390 format float from the underlying data input stream and converts it to IEEE format.

Specified by:
readFloat in interface java.io.DataInput
Overrides:
readFloat in class NativeDataInputStream
Returns:
the next four bytes of this input stream, interpreted as a float.
Throws:
java.io.IOException
See Also:
NativeDataInputStream.readInt()

readDouble

public double readDouble()
                  throws java.io.IOException
Reads an OS/390 format double from the underlying data input stream and converts it to IEEE format.

Specified by:
readDouble in interface java.io.DataInput
Overrides:
readDouble in class NativeDataInputStream
Returns:
the next eight bytes of this input stream, interpreted as a double.
Throws:
java.io.IOException
See Also:
NativeDataInputStream.readLong()


Copyright © 2009 CA, All rights reserved