org.media.mn8.util.tar
Class TarBuffer

java.lang.Object
  |
  +--org.media.mn8.util.tar.TarBuffer

public class TarBuffer
extends java.lang.Object

Version:
$Revision: 1.2 $ $Date: 2002/02/27 19:21:18 $
Author:
Szabo Csaba

Field Summary
static int DEFAULT_BLKSIZE
           
static int DEFAULT_RCDSIZE
           
 
Constructor Summary
TarBuffer(java.io.InputStream is)
           
TarBuffer(java.io.OutputStream os)
           
 
Method Summary
 void close()
           
 int getBlockSize()
           
 int getRecordSize()
           
 boolean isEOFRecord(byte[] rec)
           
 byte[] readRecord()
           
 void writeRecord(byte[] buffer)
           
 void writeRecord(byte[] buf, int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RCDSIZE

public static final int DEFAULT_RCDSIZE

DEFAULT_BLKSIZE

public static final int DEFAULT_BLKSIZE
Constructor Detail

TarBuffer

public TarBuffer(java.io.InputStream is)

TarBuffer

public TarBuffer(java.io.OutputStream os)
Method Detail

getRecordSize

public int getRecordSize()

getBlockSize

public int getBlockSize()

isEOFRecord

public boolean isEOFRecord(byte[] rec)

readRecord

public byte[] readRecord()
                  throws java.io.IOException

writeRecord

public void writeRecord(byte[] buffer)
                 throws java.io.IOException

writeRecord

public void writeRecord(byte[] buf,
                        int offset)
                 throws java.io.IOException

close

public void close()
           throws java.io.IOException


"Copyright © 2001 Internet Multicasting Services & media.org. All Rights Reserved."