2005/5/9

     
 

class TarFileHeader

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::vfile::tar::TarFileHeader Class Reference

#include <TarFileHeader.h>

Inheritance diagram for acdk::vfile::tar::TarFileHeader:

acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Public Types

enum  { TarFileHeaderSize = 512 }

Public Member Functions

 TarFileHeader ()
bool isDirectory ()
bool isFile ()
bool canRead ()
jlong length ()
RbyteArray getContent (::acdk::io::Reader &in)
int getEndOffset ()
bool read (jlong start,::acdk::io::Reader &in)

Public Attributes

jlong offset
bool derived
RString filename
 name of file [100]

int filemode
 file mode octal ascii [8]

int uid
 uid owner user ID octal ascii [8]

int guid
 gid owner group ID octal ascii [8]

jlong size
 12 size length of file in bytes octal ascii [12]

jlong mtime
 modify time of file octal ascii [12]

int chksum
 checksum for header octal ascii [8]

char linkflag
 link indicator for links

RString linkname
 linkname name of linked file [100]

RString magic
 ustar [6]

RbyteArray version
 USTAR version [2].

RString uname
 [32]

RString gname
 [32]


Private Member Functions

void write (::acdk::io::Writer &out)

Static Private Member Functions

RString readString (::acdk::io::Reader &in, int len)
void writeString (::acdk::io::Writer &out, IN(RString) str, int len)
jlong readLong (::acdk::io::Reader &in, int len)
void writeLong (::acdk::io::Writer &out, jlong val, int len)

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
TarFileHeaderSize 


Constructor & Destructor Documentation

acdk::vfile::tar::TarFileHeader::TarFileHeader  )  [inline]
 


Member Function Documentation

bool acdk::vfile::tar::TarFileHeader::canRead  )  [inline]
 

RbyteArray acdk::vfile::tar::TarFileHeader::getContent ::acdk::io::Reader in  ) 
 

int acdk::vfile::tar::TarFileHeader::getEndOffset  )  [inline]
 

bool acdk::vfile::tar::TarFileHeader::isDirectory  )  [inline]
 

bool acdk::vfile::tar::TarFileHeader::isFile  )  [inline]
 

jlong acdk::vfile::tar::TarFileHeader::length  )  [inline]
 

bool acdk::vfile::tar::TarFileHeader::read jlong  start,
::acdk::io::Reader in
 

jlong acdk::vfile::tar::TarFileHeader::readLong ::acdk::io::Reader in,
int  len
[static, private]
 

RString acdk::vfile::tar::TarFileHeader::readString ::acdk::io::Reader in,
int  len
[static, private]
 

void acdk::vfile::tar::TarFileHeader::write ::acdk::io::Writer out  )  [private]
 

void acdk::vfile::tar::TarFileHeader::writeLong ::acdk::io::Writer out,
jlong  val,
int  len
[static, private]
 

void acdk::vfile::tar::TarFileHeader::writeString ::acdk::io::Writer out,
IN(RString str,
int  len
[static, private]
 


Member Data Documentation

int acdk::vfile::tar::TarFileHeader::chksum
 

checksum for header octal ascii [8]

bool acdk::vfile::tar::TarFileHeader::derived
 

int acdk::vfile::tar::TarFileHeader::filemode
 

file mode octal ascii [8]

RString acdk::vfile::tar::TarFileHeader::filename
 

name of file [100]

RString acdk::vfile::tar::TarFileHeader::gname
 

[32]

int acdk::vfile::tar::TarFileHeader::guid
 

gid owner group ID octal ascii [8]

char acdk::vfile::tar::TarFileHeader::linkflag
 

link indicator for links

RString acdk::vfile::tar::TarFileHeader::linkname
 

linkname name of linked file [100]

RString acdk::vfile::tar::TarFileHeader::magic
 

ustar [6]

jlong acdk::vfile::tar::TarFileHeader::mtime
 

modify time of file octal ascii [12]

jlong acdk::vfile::tar::TarFileHeader::offset
 

jlong acdk::vfile::tar::TarFileHeader::size
 

12 size length of file in bytes octal ascii [12]

int acdk::vfile::tar::TarFileHeader::uid
 

uid owner user ID octal ascii [8]

RString acdk::vfile::tar::TarFileHeader::uname
 

[32]

RbyteArray acdk::vfile::tar::TarFileHeader::version
 

USTAR version [2].