Class EncapsOutputStream

  • All Implemented Interfaces:
    MarshalOutputStream, java.io.Closeable, java.io.Flushable, java.io.Serializable, java.lang.AutoCloseable, DataOutputStream, IDLEntity, ValueBase, ValueOutputStream
    Direct Known Subclasses:
    AnyImpl.AnyOutputStream, TypeCodeOutputStream

    public class EncapsOutputStream
    extends CDROutputObject
    Encapsulations are supposed to explicitly define their code sets and GIOP version. The original resolution to issue 2784 said that the defaults were UTF-8 and UTF-16, but that was not agreed upon. These streams currently use CDR 1.2 with ISO8859-1 for char/string and UTF16 for wchar/wstring. If no byte order marker is available, the endianness of the encapsulation is used. When more encapsulations arise that have their own special code sets defined, we can make all constructors take such parameters.
    See Also:
    Serialized Form