org.media.mn8.util.tar
Class TarEntry

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

public class TarEntry
extends Object

Version:
$Revision: 1.1 $ $Date: 2002/02/27 19:05:53 $
Author:
Szabo Csaba

Field Summary
protected  File file
           
protected  TarHeader header
           
 
Constructor Summary
TarEntry(byte[] header)
           
TarEntry(String name, int length)
           
 
Method Summary
 String getName()
           
 long getSize()
           
 boolean isDirectory()
           
 void nameTarHeader(TarHeader hdr, String name, int length)
           
 void parseTarHeader(TarHeader hdr, byte[] header)
           
 void writeEntryHeader(byte[] buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

header

protected TarHeader header

file

protected File file
Constructor Detail

TarEntry

public TarEntry(byte[] header)
         throws Exception

TarEntry

public TarEntry(String name,
                int length)
Method Detail

getName

public String getName()

getSize

public long getSize()

parseTarHeader

public void parseTarHeader(TarHeader hdr,
                           byte[] header)
                    throws Exception
Exception

nameTarHeader

public void nameTarHeader(TarHeader hdr,
                          String name,
                          int length)

writeEntryHeader

public void writeEntryHeader(byte[] buf)

isDirectory

public boolean isDirectory()


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."