Package net.rim.device.api.compress

Examples of net.rim.device.api.compress.GZIPOutputStream


        return new CacheItem( storeKey, url, expires, data.length, pDataStore.size() );
    }

    private void writeDataToStore( ByteVectorWrapper dataVector, byte[] data ) throws IOException {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        GZIPOutputStream gzipStream = new GZIPOutputStream( baos, 6, GZIPOutputStream.MAX_LOG2_WINDOW_LENGTH );
        gzipStream.write( data );
        gzipStream.close();
        byte[] compressedData = baos.toByteArray();

        // Write compressed size
        int compressedSize = compressedData.length;
        int originalSize = data.length;
View Full Code Here

TOP

Related Classes of net.rim.device.api.compress.GZIPOutputStream

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.