Свойство | Type | Description | |
---|---|---|---|
entryFactory | IEntryFactory | ||
entryOffset | long | ||
entrySize | long | ||
hasHitEOF | bool | ||
readBuffer | byte[] | ||
tarBuffer |
Méthode | Description | |
---|---|---|
CopyEntryContents ( Stream outputStream ) : void |
Copies the contents of the current tar archive entry directly into an output stream.
|
|
Flush ( ) : void |
Flushes the baseInputStream
|
|
GetNextEntry ( ) : |
Get the next entry in this tar archive. This will skip over any remaining data in the current entry, if there is one, and place the input stream at the header of the next entry, and read the header and instantiate a new TarEntry from the header bytes and return that entry. If there are no more entries in the archive, null will be returned to indicate that the end of the archive has been reached.
|
|
Mark ( int markLimit ) : void |
Since we do not support marking just yet, we do nothing.
|
|
Read ( byte buffer, int offset, int count ) : int |
Reads bytes from the current tar archive entry. This method is aware of the boundaries of the current entry in the archive and will deal with them appropriately
|
|
ReadByte ( ) : int |
Reads a byte from the current tar archive entry.
|
|
Reset ( ) : void |
Since we do not support marking just yet, we do nothing.
|
|
Seek ( long offset, SeekOrigin origin ) : long |
Set the streams position. This operation is not supported and will throw a NotSupportedException
|
|
SetEntryFactory ( IEntryFactory factory ) : void |
Set the entry factory for this instance.
|
|
SetLength ( long value ) : void |
Sets the length of the stream This operation is not supported and will throw a NotSupportedException
|
|
Skip ( long skipCount ) : void |
Skip bytes in the input buffer. This skips bytes in the current entry's data, not the entire archive, and will stop at the end of the current entry's data if the number to skip extends beyond that point.
|
|
TarInputStream ( Stream inputStream ) : System |
Construct a TarInputStream with default block factor
|
|
TarInputStream ( Stream inputStream, int blockFactor ) : System |
Construct a TarInputStream with user specified block factor
|
|
Write ( byte buffer, int offset, int count ) : void |
Writes a block of bytes to this stream using data from a buffer. This operation is not supported and will throw a NotSupportedException
|
|
WriteByte ( byte value ) : void |
Writes a byte to the current position in the file stream. This operation is not supported and will throw a NotSupportedException
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Closes this stream. Calls the TarBuffer's close() method. The underlying stream is closed by the TarBuffer.
|
|
SkipToNextEntry ( ) : void |
Méthode | Description | |
---|---|---|
GetRecordSize ( ) : int |
public CopyEntryContents ( Stream outputStream ) : void | ||
outputStream | Stream | /// The OutputStream into which to write the entry's data. /// |
Résultat | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Résultat | void |
public Mark ( int markLimit ) : void | ||
markLimit | int | /// The limit to mark. /// |
Résultat | void |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | /// The buffer into which to place bytes read. /// |
offset | int | /// The offset at which to place bytes read. /// |
count | int | /// The number of bytes to read. /// |
Résultat | int |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | The offset relative to the origin to seek to. |
origin | SeekOrigin | The |
Résultat | long |
public SetEntryFactory ( IEntryFactory factory ) : void | ||
factory | IEntryFactory | The factory for creating new entries |
Résultat | void |
public SetLength ( long value ) : void | ||
value | long | The new stream length. |
Résultat | void |
public Skip ( long skipCount ) : void | ||
skipCount | long | /// The number of bytes to skip. /// |
Résultat | void |
public TarInputStream ( Stream inputStream ) : System | ||
inputStream | Stream | stream to source data from |
Résultat | System |
public TarInputStream ( Stream inputStream, int blockFactor ) : System | ||
inputStream | Stream | stream to source data from |
blockFactor | int | block factor to apply to archive |
Résultat | System |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The buffer containing bytes to write. |
offset | int | The offset in the buffer of the frist byte to write. |
count | int | The number of bytes to write. |
Résultat | void |
public WriteByte ( byte value ) : void | ||
value | byte | The byte value to write. |
Résultat | void |