Package org.jboss.marshalling

Examples of org.jboss.marshalling.StreamHeader


    public RiverVersionZeroMarshallerFactoryTestMarshallerProviderImpl(final MarshallerFactory factory) {
        super(factory, 0);
    }

    public Marshaller create(final MarshallingConfiguration config, final ByteOutput target) throws IOException {
        final StreamHeader header = config.getStreamHeader();
        config.setStreamHeader(new StreamHeader() {
            public void readHeader(final ByteInput input) throws IOException {
                if (header != null) header.readHeader(input);
            }

            public void writeHeader(final ByteOutput output) throws IOException {
                if (header != null) header.writeHeader(output);
                output.write(0);
            }
        });
        return super.create(config, target);
    }
View Full Code Here

TOP

Related Classes of org.jboss.marshalling.StreamHeader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.