Package org.pdfbox.io

Examples of org.pdfbox.io.ASCII85OutputStream


     *
     * @throws IOException If there is an error compressing the stream.
     */
    public void encode( InputStream rawData, OutputStream result, COSDictionary options ) throws IOException
    {
        ASCII85OutputStream os = new ASCII85OutputStream(result);
        byte[] buffer = new byte[1024];
        int amountRead = 0;
        while( (amountRead = rawData.read( buffer, 0, 1024 )) != -1 )
        {
            os.write( buffer, 0, amountRead );
        }
        os.close();
        result.flush();
    }
View Full Code Here


     *
     * @throws IOException If there is an error compressing the stream.
     */
    public void encode( InputStream rawData, OutputStream result, COSDictionary options ) throws IOException
    {
        ASCII85OutputStream os = new ASCII85OutputStream(result);
        byte[] buffer = new byte[1024];
        int amountRead = 0;
        while( (amountRead = rawData.read( buffer, 0, 1024 )) != -1 )
        {
            os.write( buffer, 0, amountRead );
        }
        os.close();
        result.flush();
    }
View Full Code Here

TOP

Related Classes of org.pdfbox.io.ASCII85OutputStream

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.