OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpenSim.Framework.Serialization.TarArchiveWriter Class Reference

Temporary code to produce a tar archive in tar v7 format More...

Public Member Functions

 TarArchiveWriter (Stream s)
 
void WriteDir (string dirName)
 Write a directory entry to the tar archive. We can only handle one path level right now! More...
 
void WriteFile (string filePath, string data)
 Write a file to the tar archive More...
 
void WriteFile (string filePath, byte[] data)
 Write a file to the tar archive More...
 
void Close ()
 Finish writing the raw tar archive data to a stream. The stream will be closed on completion. More...
 

Static Public Member Functions

static byte[] ConvertDecimalToPaddedOctalBytes (int d, int padding)
 

Protected Member Functions

void WriteEntry (string filePath, byte[] data, char fileType)
 Write a particular entry More...
 

Protected Attributes

BinaryWriter m_bw
 Binary writer for the underlying stream More...
 

Detailed Description

Temporary code to produce a tar archive in tar v7 format

Definition at line 40 of file TarArchiveWriter.cs.

Constructor & Destructor Documentation

OpenSim.Framework.Serialization.TarArchiveWriter.TarArchiveWriter ( Stream  s)
inline

Definition at line 49 of file TarArchiveWriter.cs.

Member Function Documentation

void OpenSim.Framework.Serialization.TarArchiveWriter.Close ( )
inline

Finish writing the raw tar archive data to a stream. The stream will be closed on completion.

Parameters
sStream to which to write the data
Returns

Definition at line 106 of file TarArchiveWriter.cs.

static byte [] OpenSim.Framework.Serialization.TarArchiveWriter.ConvertDecimalToPaddedOctalBytes ( int  d,
int  padding 
)
inlinestatic

Definition at line 122 of file TarArchiveWriter.cs.

void OpenSim.Framework.Serialization.TarArchiveWriter.WriteDir ( string  dirName)
inline

Write a directory entry to the tar archive. We can only handle one path level right now!

Parameters
dirName

Definition at line 58 of file TarArchiveWriter.cs.

void OpenSim.Framework.Serialization.TarArchiveWriter.WriteEntry ( string  filePath,
byte[]  data,
char  fileType 
)
inlineprotected

Write a particular entry

Parameters
filePath
data
fileType

Definition at line 148 of file TarArchiveWriter.cs.

void OpenSim.Framework.Serialization.TarArchiveWriter.WriteFile ( string  filePath,
string  data 
)
inline

Write a file to the tar archive

Parameters
filePath
data

Definition at line 72 of file TarArchiveWriter.cs.

void OpenSim.Framework.Serialization.TarArchiveWriter.WriteFile ( string  filePath,
byte[]  data 
)
inline

Write a file to the tar archive

Parameters
filePath
data

Definition at line 82 of file TarArchiveWriter.cs.

Member Data Documentation

BinaryWriter OpenSim.Framework.Serialization.TarArchiveWriter.m_bw
protected

Binary writer for the underlying stream

Definition at line 47 of file TarArchiveWriter.cs.


The documentation for this class was generated from the following file: