edu.swri.swiftvis.util
Class BinaryInput

java.lang.Object
  extended by edu.swri.swiftvis.util.BinaryInput

public class BinaryInput
extends java.lang.Object

This class is intended to help other parts of the code read in data that is in a FORTRAN binary file. When using this, keep in mind that FORTRAN writes fields with headers and footers that tell you how many bytes are in the field.


Field Summary
private  java.io.DataInput wrapped
           
 
Constructor Summary
BinaryInput(java.io.DataInput di)
           
 
Method Summary
 void close()
           
 int readInt2()
           
 int readInt4()
           
 long readInt8()
           
 int readJavaInt2()
           
 int readJavaInt4()
           
 double readJavaReal4()
           
 double readJavaReal8()
           
 double readReal4()
           
 double readReal8()
           
 double readXDR4()
           
 double readXDR8()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wrapped

private java.io.DataInput wrapped
Constructor Detail

BinaryInput

public BinaryInput(java.io.DataInput di)
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

readJavaReal4

public double readJavaReal4()
                     throws java.io.IOException
Throws:
java.io.IOException

readJavaReal8

public double readJavaReal8()
                     throws java.io.IOException
Throws:
java.io.IOException

readReal4

public double readReal4()
                 throws java.io.IOException
Throws:
java.io.IOException

readReal8

public double readReal8()
                 throws java.io.IOException
Throws:
java.io.IOException

readXDR4

public double readXDR4()
                throws java.io.IOException
Throws:
java.io.IOException

readXDR8

public double readXDR8()
                throws java.io.IOException
Throws:
java.io.IOException

readInt8

public long readInt8()
              throws java.io.IOException
Throws:
java.io.IOException

readInt4

public int readInt4()
             throws java.io.IOException
Throws:
java.io.IOException

readInt2

public int readInt2()
             throws java.io.IOException
Throws:
java.io.IOException

readJavaInt4

public int readJavaInt4()
                 throws java.io.IOException
Throws:
java.io.IOException

readJavaInt2

public int readJavaInt2()
                 throws java.io.IOException
Throws:
java.io.IOException