com.sun.corba.se.impl.orbutil.HexOutputStream Java Examples

The following examples show how to use com.sun.corba.se.impl.orbutil.HexOutputStream. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IORImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public String stringify()
{
    StringWriter bs;

    MarshalOutputStream s =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(factory);
    s.putEndian();
    write( (OutputStream)s );
    bs = new StringWriter();
    try {
        s.writeTo(new HexOutputStream(bs));
    } catch (IOException ex) {
        throw wrapper.stringifyWriteError( ex ) ;
    }

    return ORBConstants.STRINGIFY_PREFIX + bs;
}
 
Example #2
Source File: IORImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public String stringify()
{
    StringWriter bs;

    MarshalOutputStream s =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(factory);
    s.putEndian();
    write( (OutputStream)s );
    bs = new StringWriter();
    try {
        s.writeTo(new HexOutputStream(bs));
    } catch (IOException ex) {
        throw wrapper.stringifyWriteError( ex ) ;
    }

    return ORBConstants.STRINGIFY_PREFIX + bs;
}
 
Example #3
Source File: IORImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public String stringify()
{
    StringWriter bs;

    MarshalOutputStream s =
        sun.corba.OutputStreamFactory.newEncapsOutputStream(factory);
    s.putEndian();
    write( (OutputStream)s );
    bs = new StringWriter();
    try {
        s.writeTo(new HexOutputStream(bs));
    } catch (IOException ex) {
        throw wrapper.stringifyWriteError( ex ) ;
    }

    return ORBConstants.STRINGIFY_PREFIX + bs;
}