C# 클래스 Universe.Framework.Serialization.TarArchiveWriter

Temporary code to produce a tar archive in tar v7 format
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_asciiEncoding System.Text.ASCIIEncoding
m_bw System.IO.BinaryWriter
m_closed bool
m_utf8Encoding System.Text.UTF8Encoding

공개 메소드들

메소드 설명
Close ( ) : void

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

ConvertDecimalToPaddedOctalBytes ( int d, int padding ) : byte[]
TarArchiveWriter ( Stream s ) : System
WriteDir ( string dirName ) : void

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

WriteFile ( string filePath, byte data ) : void

Write a file to the tar archive

WriteFile ( string filePath, string data ) : void

Write a file to the tar archive

보호된 메소드들

메소드 설명
WriteEntry ( string filePath, byte data, char fileType ) : void

Write a particular entry

메소드 상세

Close() 공개 메소드

Finish writing the raw tar archive data to a stream. The stream will be closed on completion.
public Close ( ) : void
리턴 void

ConvertDecimalToPaddedOctalBytes() 공개 정적인 메소드

public static ConvertDecimalToPaddedOctalBytes ( int d, int padding ) : byte[]
d int
padding int
리턴 byte[]

TarArchiveWriter() 공개 메소드

public TarArchiveWriter ( Stream s ) : System
s Stream
리턴 System

WriteDir() 공개 메소드

Write a directory entry to the tar archive. We can only handle one path level right now!
public WriteDir ( string dirName ) : void
dirName string
리턴 void

WriteEntry() 보호된 메소드

Write a particular entry
protected WriteEntry ( string filePath, byte data, char fileType ) : void
filePath string
data byte
fileType char
리턴 void

WriteFile() 공개 메소드

Write a file to the tar archive
public WriteFile ( string filePath, byte data ) : void
filePath string
data byte
리턴 void

WriteFile() 공개 메소드

Write a file to the tar archive
public WriteFile ( string filePath, string data ) : void
filePath string
data string
리턴 void

프로퍼티 상세

m_asciiEncoding 보호되어 있는 정적으로 프로퍼티

protected static ASCIIEncoding,System.Text m_asciiEncoding
리턴 System.Text.ASCIIEncoding

m_bw 보호되어 있는 프로퍼티

Binary writer for the underlying stream
protected BinaryWriter,System.IO m_bw
리턴 System.IO.BinaryWriter

m_closed 보호되어 있는 프로퍼티

protected bool m_closed
리턴 bool

m_utf8Encoding 보호되어 있는 정적으로 프로퍼티

protected static UTF8Encoding,System.Text m_utf8Encoding
리턴 System.Text.UTF8Encoding