org.jboss.remoting.loading
Class CompressedClassBytes
java.lang.Object
   org.jboss.remoting.loading.ClassBytes
org.jboss.remoting.loading.ClassBytes
       org.jboss.remoting.loading.CompressedClassBytes
org.jboss.remoting.loading.CompressedClassBytes
- All Implemented Interfaces: 
- Externalizable, Serializable
- public class CompressedClassBytes- extends ClassBytes- implements Externalizable
CompressedClassBytes is a ClassBytes subclass that compresses
 class data, if possible.
- Version:
- $Revision: 1.2 $
- Author:
- Jeff Haynie
- See Also:
- Serialized Form
 
 
 
 
 
 
CompressedClassBytes
public CompressedClassBytes()
CompressedClassBytes
public CompressedClassBytes(String className,
                            byte[] data,
                            int compressionLevel)
main
public static void main(String[] args)
- 
 
- 
 
readExternal
public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
- 
- Specified by:
- readExternalin interface- Externalizable
 
- 
- Throws:
- IOException
- ClassNotFoundException
 
writeExternal
public void writeExternal(ObjectOutput out)
                   throws IOException
- 
- Specified by:
- writeExternalin interface- Externalizable
 
- 
- Throws:
- IOException
 
compress
public byte[] compress(byte[] input)
- Compresses the input data.
 
- 
 
- 
- Returns:
- null if compression results in larger output.
 
uncompress
public byte[] uncompress(byte[] input)
                  throws IOException
- Un-compresses the input data.
 
- 
 
- 
- Throws:
- IOException- if the input is not valid.
 
      
      
        Copyright © 2004 JBoss Inc. All Rights Reserved.