org.firebirdsql.gds
Class XdrOutputStream

java.lang.Object
  extended byorg.firebirdsql.gds.XdrOutputStream

public final class XdrOutputStream
extends java.lang.Object

Describe class XdrOutputStream here.

Version:
1.0
Author:
Alejandro Alberola, David Jencks

Constructor Summary
XdrOutputStream(java.io.OutputStream out)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(byte[] b)
           
 void write(byte[] b, int len, int pad)
           
 void write(int b)
           
 void writeBlobBuffer(byte[] buffer)
           
 void writeBuffer(byte[] buffer)
           
 void writeInt(int v)
           
 void writeLong(long v)
           
 void writeSet(int type, byte[] s)
           
 void writeSQLData(XSQLDA xsqlda)
           
 void writeString(java.lang.String s)
           
 void writeString(java.lang.String s, java.lang.String encoding)
          Deprecated. due to character translation feature use of this method is discouraged
 void writeTyped(int type, Xdrable item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XdrOutputStream

public XdrOutputStream(java.io.OutputStream out)
Method Detail

writeBuffer

public void writeBuffer(byte[] buffer)
                 throws java.io.IOException
Throws:
java.io.IOException

writeBlobBuffer

public void writeBlobBuffer(byte[] buffer)
                     throws java.io.IOException
Throws:
java.io.IOException

writeString

public void writeString(java.lang.String s)
                 throws java.io.IOException
Throws:
java.io.IOException

writeString

public void writeString(java.lang.String s,
                        java.lang.String encoding)
                 throws java.io.IOException
Deprecated. due to character translation feature use of this method is discouraged

Throws:
java.io.IOException

writeSet

public void writeSet(int type,
                     byte[] s)
              throws java.io.IOException
Throws:
java.io.IOException

writeTyped

public void writeTyped(int type,
                       Xdrable item)
                throws java.io.IOException
Throws:
java.io.IOException

writeSQLData

public void writeSQLData(XSQLDA xsqlda)
                  throws java.io.IOException
Throws:
java.io.IOException

writeLong

public final void writeLong(long v)
                     throws java.io.IOException
Throws:
java.io.IOException

writeInt

public final void writeInt(int v)
                    throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int len,
                  int pad)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Throws:
java.io.IOException

flush

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

close

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


Copyright © 2001 David Jencks and other authors. All rights reserved.