Package io.apigee.trireme.core

Examples of io.apigee.trireme.core.CircularOutputStream


                    if (hdr != null) {
                        headerDone = true;
                        initInflate(true);
                        checksum = new CRC32();
                        // We need to save the last eight bytes of all the input to eventually read the trailer
                        trailerBuf = new CircularOutputStream(GZipHeader.TRAILER_SIZE);
                    }
                    break;
                case UNZIP:
                    // "Unzip" is a magic mode that uses either "inflate" or "gunzip" depending on whether
                    // the data contains a GZip header.
View Full Code Here


    }

    private void testOneByOne(int initial, int max, int bytes)
        throws IOException
    {
        CircularOutputStream out = new CircularOutputStream(initial, max);
        fill(out, bytes);
        byte[] buf = out.toByteArray();
        verify(buf, (bytes > max) ? (bytes - max) : 0);

        out = new CircularOutputStream(initial, max);
        fillBulk(out, bytes);
        buf = out.toByteArray();
        verify(buf, (bytes > max) ? (bytes - max) : 0);
    }
View Full Code Here

TOP

Related Classes of io.apigee.trireme.core.CircularOutputStream

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.