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

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


        IsisContext.getTransactionManager().endTransaction();
    }
   
    private Memento fromBytes(final byte[] bytes) throws IOException {
        bais = new ByteArrayInputStream(bytes);
        DataInputStreamExtended input = new DataInputStreamExtended(bais);
        final Memento recreate = Memento.recreateFrom(input);
        return recreate;
    }
View Full Code Here


    @Override
    public void connect() throws IOException {
        super.connect();

        this.input = new DataInputStreamExtended(getTransport().getInputStream());
        this.output = new DataOutputStreamExtended(getTransport().getOutputStream());

        if (debugging) {
            this.input = new DebugDataInputExtended(input);
            this.output = new DebugDataOutputExtended(output);
View Full Code Here

        final char[] oidCharArray = oidStr.toCharArray();
        byte[] oidBytes;
        try {
            oidBytes = Hex.decodeHex(oidCharArray);
            final ByteArrayInputStream bais = new ByteArrayInputStream(oidBytes);
            final DataInputStreamExtended inputImpl = new DataInputStreamExtended(bais);
            return inputImpl.readEncodable(Oid.class);
        } catch (final IOException ex) {
            throw new IsisException("Failed to read object", ex);
        } catch (final DecoderException ex) {
            throw new IsisException("Failed to hex decode object", ex);
        }
View Full Code Here

    @Override
    public void connect() throws IOException {
        super.connect();

        this.input = new DataInputStreamExtended(getTransport().getInputStream());
        this.output = new DataOutputStreamExtended(getTransport().getOutputStream());

        if (debugging) {
            this.input = new DebugDataInputExtended(input);
            this.output = new DebugDataOutputExtended(output);
View Full Code Here

    }


    private Memento fromBytes(final byte[] bytes) throws IOException {
        bais = new ByteArrayInputStream(bytes);
        DataInputStreamExtended input = new DataInputStreamExtended(bais);
        final Memento recreate = Memento.recreateFrom(input);
        return recreate;
    }
View Full Code Here

        final char[] oidCharArray = oidStr.toCharArray();
        byte[] oidBytes;
        try {
            oidBytes = Hex.decodeHex(oidCharArray);
            final ByteArrayInputStream bais = new ByteArrayInputStream(oidBytes);
            final DataInputStreamExtended inputImpl = new DataInputStreamExtended(bais);
            return inputImpl.readEncodable(Oid.class);
        } catch (final IOException ex) {
            throw new IsisException("Failed to read object", ex);
        } catch (final DecoderException ex) {
            throw new IsisException("Failed to hex decode object", ex);
        }
View Full Code Here

TOP

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

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.