org.caleigo.toolkit.tunnel
Class CRCPacker

java.lang.Object
  extended byorg.caleigo.toolkit.tunnel.CRCPacker
All Implemented Interfaces:
ITunnelPacker

public class CRCPacker
extends java.lang.Object
implements ITunnelPacker

Version:
1.00
Author:
Mattias Hagstrand

Nested Class Summary
protected static class CRCPacker.CRCDataPackage
           
protected  class CRCPacker.CRCPackerInputStream
           
protected  class CRCPacker.CRCPackerOutputStream
           
 
Constructor Summary
CRCPacker()
           
 
Method Summary
 java.io.InputStream createInputStream(java.io.InputStream in)
          Creates and returns an InputStream that wrapps the provided InputStream.
 java.io.OutputStream createOutputStream(java.io.OutputStream out)
          Creates and returns an OutputStream that wrapps the provided OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRCPacker

public CRCPacker()
Method Detail

createInputStream

public java.io.InputStream createInputStream(java.io.InputStream in)
Creates and returns an InputStream that wrapps the provided InputStream. The returned InputStream can then be used to unpack messages. The returned InputStream must be stateless.

Specified by:
createInputStream in interface ITunnelPacker

createOutputStream

public java.io.OutputStream createOutputStream(java.io.OutputStream out)
Creates and returns an OutputStream that wrapps the provided OutputStream. The returned OutputStream can then be used to pack messages. The returned OutputStream must be stateless.

Specified by:
createOutputStream in interface ITunnelPacker


Copyright © 2005 Caleigo. All Rights Reserved.