Package base.io

Examples of base.io.BufArrayOutputStream


        return this.msg_size;
    }

    public void setInfoBuffer()
    {
        BufArrayOutputStream bary_outs  = new BufArrayOutputStream( 8 );
        DataOutputStream     data_outs  = new DataOutputStream( bary_outs );
        try {
            data_outs.writeInt( this.msg_tag );
            data_outs.writeInt( this.msg_size );
        } catch ( java.io.IOException ioerr ) {
            ioerr.printStackTrace();
            System.exit( 1 );
        }
        super.setInfoBuffer( bary_outs.getByteArrayBuf() );
    }
View Full Code Here


        /*
           Const.LEAF_BYTESIZE is the INITIAL size for
           BufArrayOutputStream's buffer which can still grow as needed
        */
        bary_outs      = new BufArrayOutputStream(
                                 filehdr.getTreeLeafByteSize() );
        data_outs      = new MixedDataOutputStream( bary_outs );

        treedir        = new TreeDir();
        node_blockptr  = null;
View Full Code Here

    }

    public void setTreeLeafByteSize( int in_bytesize )
    {
        filehdr.setTreeLeafByteSize( in_bytesize );
        bary_outs      = new BufArrayOutputStream(
                                 filehdr.getTreeLeafByteSize() );
        data_outs      = new MixedDataOutputStream( bary_outs );
    }
View Full Code Here

        return this.msg_size;
    }

    public void setInfoBuffer()
    {
        BufArrayOutputStream bary_outs  = new BufArrayOutputStream( 8 );
        DataOutputStream     data_outs  = new DataOutputStream( bary_outs );
        try {
            data_outs.writeInt( this.msg_tag );
            data_outs.writeInt( this.msg_size );
        } catch ( java.io.IOException ioerr ) {
            ioerr.printStackTrace();
            System.exit( 1 );
        }
        super.setInfoBuffer( bary_outs.getByteArrayBuf() );
    }
View Full Code Here

TOP

Related Classes of base.io.BufArrayOutputStream

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.