ProgramixGenericLib v5.0.1

com.programix.io
Class TransferWrapper

java.lang.Object
  extended by 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

Constructor Summary
TransferWrapper()
           
 
Method Summary
 int calcWriteToByteCount()
           
static TransferWrapper createFrom(DataInput in)
           
 byte[] getPayload()
           
 boolean isCompressed()
           
 void readFrom(DataInput in)
           
 void setCompressed(boolean compressed)
           
 void setPayload(byte[] payload)
           
 void writeTo(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferWrapper

public TransferWrapper()
Method Detail

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

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.