Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.fudaa.dodico.fortran
Class NativeBinaryOutputStream  view NativeBinaryOutputStream download NativeBinaryOutputStream.java

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byjava.io.DataOutputStream
              extended byorg.fudaa.dodico.fortran.NativeBinaryOutputStream
All Implemented Interfaces:
java.io.DataOutput
Direct Known Subclasses:
FortranBinaryOutputStream

public class NativeBinaryOutputStream
extends java.io.DataOutputStream

Une classe etendant DataOutputStream et permettant de facilement ecrire des fichiers binaires dependants de la machine (sparc, i386, ...)

Version:
$Revision: 1.11 $ $Date: 2001/09/11 14:29:51 $ by $Author: deniger $

Field Summary
(package private)  byte[] buf
           
(package private)  int i1
           
(package private)  int i2
           
(package private)  int i3
           
(package private)  int i4
           
(package private)  int l1
           
(package private)  int l2
           
(package private)  int l3
           
(package private)  int l4
           
(package private)  int l5
           
(package private)  int l6
           
(package private)  int l7
           
(package private)  int l8
           
(package private)  int s1
           
(package private)  int s2
           
static java.lang.String SPARC
           
static java.lang.String X86
           
 
Fields inherited from class java.io.DataOutputStream
written
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
NativeBinaryOutputStream(java.io.OutputStream _out, java.lang.String _machine)
           
 
Method Summary
 void setMachineType(java.lang.String _machine)
           
 void writeFloat_32(float float_32)
           
 void writeFloat_64(double float_64)
           
 void writeInt_16(short int_16)
           
 void writeInt_32(int int_32)
           
 void writeInt_64(long int_64)
           
 void writeInt_8(byte int_8)
           
 void writeUInt_16(int uint_16)
           
 void writeUInt_32(long uint_32)
           
 void writeUInt_8(short uint_8)
           
 
Methods inherited from class java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.io.FilterOutputStream
close, 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
 

Field Detail

X86

public static final java.lang.String X86
See Also:
Constant Field Values

SPARC

public static final java.lang.String SPARC
See Also:
Constant Field Values

l1

int l1

l2

int l2

l3

int l3

l4

int l4

l5

int l5

l6

int l6

l7

int l7

l8

int l8

i1

int i1

i2

int i2

i3

int i3

i4

int i4

s1

int s1

s2

int s2

buf

byte[] buf
Constructor Detail

NativeBinaryOutputStream

public NativeBinaryOutputStream(java.io.OutputStream _out,
                                java.lang.String _machine)
                         throws java.io.IOException
Method Detail

setMachineType

public void setMachineType(java.lang.String _machine)

writeInt_8

public void writeInt_8(byte int_8)
                throws java.io.IOException

writeUInt_8

public void writeUInt_8(short uint_8)
                 throws java.io.IOException

writeInt_16

public void writeInt_16(short int_16)
                 throws java.io.IOException

writeUInt_16

public void writeUInt_16(int uint_16)
                  throws java.io.IOException

writeInt_32

public void writeInt_32(int int_32)
                 throws java.io.IOException

writeUInt_32

public void writeUInt_32(long uint_32)
                  throws java.io.IOException

writeInt_64

public void writeInt_64(long int_64)
                 throws java.io.IOException

writeFloat_32

public void writeFloat_32(float float_32)
                   throws java.io.IOException

writeFloat_64

public void writeFloat_64(double float_64)
                   throws java.io.IOException