gnu.javax.rmi.CORBA

Class CorbaOutput

Implemented Interfaces:
AutoCloseable, Closeable, DataOutput, Flushable, ObjectOutput, ObjectStreamConstants
Known Direct Subclasses:
DefaultWriteObjectTester

public class CorbaOutput
extends ObjectOutputStream
implements ObjectOutput

A class to substitute as an ObjectOutputStream for objects using writeObject method.

Nested Class Summary

Nested classes/interfaces inherited from class java.io.ObjectOutputStream

ObjectOutputStream.PutField

Fields inherited from interface java.io.ObjectStreamConstants

PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING, baseWireHandle

Constructor Summary

CorbaOutput(OutputStream an_output, Object firstObject, RmiUtilities an_util)
Create an instance, delegating calls to the given CORBA stream.

Method Summary

void
close()
No action.
void
defaultWriteObject()
void
flush()
void
write(byte[] buf)
void
write(byte[] buf, int off, int len)
void
write(int val)
void
writeBoolean(boolean val)
void
writeByte(int val)
void
writeBytes(String str)
void
writeChar(int val)
void
writeChars(String str)
void
writeDouble(double val)
void
writeFloat(float val)
void
writeInt(int val)
void
writeLong(long val)
protected void
writeObjectOverride(Object obj)
Objects are written as abstract interfaces.
void
writeShort(int val)
void
writeUTF(String str)
Such strings are written as wide strings, not as UTF.

Methods inherited from class java.io.ObjectOutputStream

annotateClass, annotateProxyClass, close, defaultWriteObject, drain, enableReplaceObject, flush, putFields, replaceObject, reset, useProtocolVersion, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeClassDescriptor, writeDouble, writeFields, writeFloat, writeInt, writeLong, writeObject, writeObjectOverride, writeShort, writeStreamHeader, writeUTF, writeUnshared

Methods inherited from class java.io.OutputStream

close, flush, write, write, write

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

CorbaOutput

public CorbaOutput(OutputStream an_output,
                   Object firstObject,
                   RmiUtilities an_util)
            throws Exception
Create an instance, delegating calls to the given CORBA stream.

Method Details

close

public void close()
            throws IOException
No action.
Specified by:
close in interface ObjectOutput
close in interface AutoCloseable
close in interface Closeable
Overrides:
close in interface ObjectOutputStream

defaultWriteObject

public void defaultWriteObject()
            throws IOException
Overrides:
defaultWriteObject in interface ObjectOutputStream

flush

public void flush()
            throws IOException
Specified by:
flush in interface ObjectOutput
flush in interface Flushable
Overrides:
flush in interface ObjectOutputStream

write

public void write(byte[] buf)
            throws IOException
Specified by:
write in interface ObjectOutput
write in interface DataOutput
Overrides:
write in interface ObjectOutputStream

write

public void write(byte[] buf,
                  int off,
                  int len)
            throws IOException
Specified by:
write in interface ObjectOutput
write in interface DataOutput
Overrides:
write in interface ObjectOutputStream

write

public void write(int val)
            throws IOException
Specified by:
write in interface ObjectOutput
write in interface DataOutput
Overrides:
write in interface ObjectOutputStream

writeBoolean

public void writeBoolean(boolean val)
            throws IOException
Specified by:
writeBoolean in interface DataOutput
Overrides:
writeBoolean in interface ObjectOutputStream

writeByte

public void writeByte(int val)
            throws IOException
Specified by:
writeByte in interface DataOutput
Overrides:
writeByte in interface ObjectOutputStream

writeBytes

public void writeBytes(String str)
            throws IOException
Specified by:
writeBytes in interface DataOutput
Overrides:
writeBytes in interface ObjectOutputStream

writeChar

public void writeChar(int val)
            throws IOException
Specified by:
writeChar in interface DataOutput
Overrides:
writeChar in interface ObjectOutputStream

writeChars

public void writeChars(String str)
            throws IOException
Specified by:
writeChars in interface DataOutput
Overrides:
writeChars in interface ObjectOutputStream

writeDouble

public void writeDouble(double val)
            throws IOException
Specified by:
writeDouble in interface DataOutput
Overrides:
writeDouble in interface ObjectOutputStream

writeFloat

public void writeFloat(float val)
            throws IOException
Specified by:
writeFloat in interface DataOutput
Overrides:
writeFloat in interface ObjectOutputStream

writeInt

public void writeInt(int val)
            throws IOException
Specified by:
writeInt in interface DataOutput
Overrides:
writeInt in interface ObjectOutputStream

writeLong

public void writeLong(long val)
            throws IOException
Specified by:
writeLong in interface DataOutput
Overrides:
writeLong in interface ObjectOutputStream

writeObjectOverride

protected void writeObjectOverride(Object obj)
            throws IOException
Objects are written as abstract interfaces.
Overrides:
writeObjectOverride in interface ObjectOutputStream

writeShort

public void writeShort(int val)
            throws IOException
Specified by:
writeShort in interface DataOutput
Overrides:
writeShort in interface ObjectOutputStream

writeUTF

public void writeUTF(String str)
            throws IOException
Such strings are written as wide strings, not as UTF.
Specified by:
writeUTF in interface DataOutput
Overrides:
writeUTF in interface ObjectOutputStream

CorbaOutput.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.