Package org.apache.isis.core.commons.encoding

Examples of org.apache.isis.core.commons.encoding.DataOutputStreamExtended


    }


    private static byte[] toBytes(final Memento memento) throws IOException {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        DataOutputStreamExtended output = new DataOutputStreamExtended(baos);
        memento.encodedData(output);
        return baos.toByteArray();
    }
View Full Code Here


public class OidStringifierHex implements OidStringifier {

    @Override
    public String enString(final Oid oid) {
        final ByteArrayOutputStream baos = new ByteArrayOutputStream();
        final DataOutputStreamExtended outputImpl = new DataOutputStreamExtended(baos);
        try {
            outputImpl.writeEncodable(oid);
            final byte[] byteArray = baos.toByteArray();
            return new String(Hex.encodeHex(byteArray));
        } catch (final IOException e) {
            throw new IsisException("Failed to write object", e);
        }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.commons.encoding.DataOutputStreamExtended

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.