com.programix.io
Class TransferWrapper
java.lang.Object
com.programix.io.TransferWrapper
- All Implemented Interfaces:
- Serializable
public class TransferWrapper
- extends Object
- implements Serializable
Used to transfer byte[] data with a marker indicating whether or
not the data has been compressed.
- Author:
- Paul Hyde
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransferWrapper
public TransferWrapper()
isCompressed
public boolean isCompressed()
setCompressed
public void setCompressed(boolean compressed)
getPayload
public byte[] getPayload()
setPayload
public void setPayload(byte[] payload)
calcWriteToByteCount
public int calcWriteToByteCount()
writeTo
public void writeTo(DataOutput out)
throws IOException
- Throws:
IOException
readFrom
public void readFrom(DataInput in)
throws IOException
- Throws:
IOException
createFrom
public static TransferWrapper createFrom(DataInput in)
throws IOException
- Throws:
IOException
Copyright © 2001-2009
Programix Incorporated.
All rights reserved.
ProgramixGenericLib is free
and is
OSI Certified
Open Source Software under the BSD
license.