Examples of MixedDataInputStream


Examples of base.io.MixedDataInputStream

            }
        }
        else {
            try {
                FileInputStream      fin   = new FileInputStream( filename );
                MixedDataInputStream din   = new MixedDataInputStream( fin );
                linemap = new LineIDMap( din );
                fin.close();
            } catch ( java.io.IOException ioerr ) {
                ioerr.printStackTrace();
                System.exit( 1 );
View Full Code Here

Examples of base.io.MixedDataInputStream

        int  blk_size = blockptr.getBlockSize();
        try {
            rand_file.seek( blk_fptr );
            rand_file.readFully( buffer, 0, blk_size );
            bary_ins  = new ByteArrayInputStream( buffer, 0, blk_size );
            data_ins  = new MixedDataInputStream( bary_ins );
            filepart.readObject( data_ins );
            data_ins.close();
        } catch ( IOException ioerr ) {
            System.err.println( "InputLog: Non-recoverable IOException! "
                              + "Exiting ..." );
View Full Code Here

Examples of base.io.MixedDataInputStream

        int  blk_size = blockptr.getBlockSize();
        try {
            rand_file.seek( blk_fptr );
            rand_file.readFully( buffer, 0, blk_size );
            bary_ins  = new ByteArrayInputStream( buffer, 0, blk_size );
            data_ins  = new MixedDataInputStream( bary_ins );
            treenode  = new TreeNode( data_ins, objdefs );
            data_ins.close();
        } catch ( IOException ioerr ) {
            System.err.println( "InputLog: Non-recoverable IOException! "
                              + "Program continues ..." );
View Full Code Here

Examples of base.io.MixedDataInputStream

    public void resizeBuffer( int size )
    {
        super.resizeBuffer( size );
        // Create Data{Input|Output} to use the ByteArray{Input|Output} streams.
        output = new old_base.io.MixedDataOutputStream( super.bary_outs );
        input  = new MixedDataInputStream( super.bary_ins );
    }
View Full Code Here

Examples of base.io.MixedDataInputStream

    }

    private void setInfoValues()
    {
        ByteArrayInputStream  bary_ins;
        MixedDataInputStream  data_ins;

        this.setInfoValueTypes();

        if ( infobuffer == null ) {
            if ( infovals != null && infovals.length > 0 ) {
                // Null infobuffer byte[] but Non-Null infovals[]
                this.addErrMsg(
                "Missing user byte[] but Non-empty format chars!" );
            }
            // Since infobuffer byte[] is null, can't set infovals[], exit.
            return;
        }

        if ( infovals != null ) {
            bary_ins = new ByteArrayInputStream( this.infobuffer );
            data_ins = new MixedDataInputStream( bary_ins );
            try {
                for ( int idx = 0; idx < infovals.length; idx++ )
                    infovals[ idx ].readValue( data_ins );
                data_ins.close();
                bary_ins.close();
            } catch ( java.io.IOException ioerr ) {
                ioerr.printStackTrace();
                System.exit( 1 );
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.