FreeHEP API
Version current

hep.io.xdr
Interface XDRDataOutput

All Superinterfaces:
DataOutput
All Known Implementing Classes:
XDROutputStream, XDRRandomAccessFile

public interface XDRDataOutput
extends DataOutput

An interface implemented by output streams that support XDR.

Version:
$Id: XDRDataOutput.java,v 1.3 2003/09/16 23:11:55 tonyj Exp $
Author:
Tony Johnson (tonyj@slac.stanford.edu)
Source Code:
XDRDataOutput.java

Method Summary
 void pad()
           
 void writeDoubleArray(double[] array)
           
 void writeDoubleArray(double[] array, int start, int n)
           
 void writeFloatArray(float[] array)
           
 void writeFloatArray(float[] array, int start, int n)
           
 void writeIntArray(int[] array)
           
 void writeIntArray(int[] array, int start, int n)
           
 void writeString(String string)
          Write a string preceeded by its (int) length
 void writeStringChars(String string)
          Write a string (no length is written)
 
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Method Detail

pad

public void pad()
         throws IOException
Throws:
IOException

writeDoubleArray

public void writeDoubleArray(double[] array)
                      throws IOException
Throws:
IOException

writeDoubleArray

public void writeDoubleArray(double[] array,
                             int start,
                             int n)
                      throws IOException
Throws:
IOException

writeFloatArray

public void writeFloatArray(float[] array)
                     throws IOException
Throws:
IOException

writeFloatArray

public void writeFloatArray(float[] array,
                            int start,
                            int n)
                     throws IOException
Throws:
IOException

writeIntArray

public void writeIntArray(int[] array)
                   throws IOException
Throws:
IOException

writeIntArray

public void writeIntArray(int[] array,
                          int start,
                          int n)
                   throws IOException
Throws:
IOException

writeString

public void writeString(String string)
                 throws IOException
Write a string preceeded by its (int) length

Throws:
IOException

writeStringChars

public void writeStringChars(String string)
                      throws IOException
Write a string (no length is written)

Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.