Méthode | Description | |
---|---|---|
AddFileTypeResolver ( FileTypeResolver resolver ) : void |
Adds a FileTypeResolver to the A FileTypeResolver adds support for recognizing a file type outside of the standard mime-type methods. |
|
Create ( IFileAbstraction abstraction ) : |
Creates a new instance of a File subclass for a specified file abstraction, guessing the mime-type from the file's extension and using the average read style.
|
|
Create ( IFileAbstraction abstraction, ReadStyle propertiesStyle ) : |
Creates a new instance of a File subclass for a specified file abstraction and read style, guessing the mime-type from the file's extension.
|
|
Create ( IFileAbstraction abstraction, string mimetype, ReadStyle propertiesStyle ) : |
Creates a new instance of a File subclass for a specified file abstraction, mime-type, and read style.
|
|
Create ( string path ) : |
Creates a new instance of a File subclass for a specified path, guessing the mime-type from the file's extension and using the average read style.
|
|
Create ( string path, ReadStyle propertiesStyle ) : |
Creates a new instance of a File subclass for a specified path and read style, guessing the mime-type from the file's extension.
|
|
Create ( string path, string mimetype, ReadStyle propertiesStyle ) : |
Creates a new instance of a File subclass for a specified path, mime-type, and read style.
|
|
Dispose ( ) : void | ||
Find ( ByteVector pattern ) : long |
Searches forwards through a file for a specified pattern, starting at the beginning of the file.
|
|
Find ( ByteVector pattern, long startPosition ) : long |
Searches forwards through a file for a specified pattern, starting at a specified offset.
|
|
Find ( ByteVector pattern, long startPosition, ByteVector before ) : long |
Searches forwards through a file for a specified pattern, starting at a specified offset.
|
|
Insert ( ByteVector data, long start ) : void |
Inserts a specifed block of data into the file repesented by the current instance at a specified location. This method inserts a new block of data into the file. To replace an existing block, ie. replacing an existing tag with a new one of different size, use |
|
Insert ( ByteVector data, long start, long replace ) : void |
Inserts a specifed block of data into the file repesented by the current instance at a specified location, replacing a specified number of bytes.
|
|
RFind ( ByteVector pattern ) : long |
Searches backwards through a file for a specified pattern, starting at the end of the file.
|
|
RFind ( ByteVector pattern, long startPosition ) : long |
Searches backwards through a file for a specified pattern, starting at a specified offset.
|
|
ReadBlock ( int length ) : ByteVector |
Removes a set of tag types from the current instance. Gets a tag of a specified type from the current instance, optionally creating a new tag if possible. Gets a tag of a specified type from the current instance. Reads a specified number of bytes at the current seek position from the current instance. In order to remove all tags from a file, pass Passing It is safe to assume that if This class merely accesses the tag if it exists. GetTag(TagTypes,bool) provides the option of adding the tag to the current instance if it does not exist. It is safe to assume that if This method reads the block of data at the current seek position. To change the seek position, use |
|
RemoveBlock ( long start, long length ) : void |
Removes a specified block of data from the file represented by the current instance.
|
|
Save ( ) : void |
Saves the changes made in the current instance to the file it represents.
|
|
Seek ( long offset ) : void |
Seeks the read/write pointer to a specified offset in the current instance, relative to the beginning of the file.
|
|
Seek ( long offset, System origin ) : void |
Seeks the read/write pointer to a specified offset in the current instance, relative to a specified origin.
|
|
WriteBlock ( ByteVector data ) : void |
Writes a block of data to the file represented by the current instance at the current seek position. This will overwrite any existing data at the seek position and append new data to the file if writing past the current end. |
Méthode | Description | |
---|---|---|
File ( IFileAbstraction abstraction ) : System |
Constructs and initializes a new instance of
|
|
File ( string path ) : System |
Constructs and initializes a new instance of
|
|
Truncate ( long length ) : void |
Resized the current instance to a specified number of bytes.
|
Méthode | Description | |
---|---|---|
RFind ( ByteVector pattern, long startPosition, ByteVector after ) : long |
Searches backwards through a file for a specified pattern, starting at a specified offset. Searching for after is not yet implemented. |
public static AddFileTypeResolver ( FileTypeResolver resolver ) : void | ||
resolver | FileTypeResolver |
/// A |
Résultat | void |
public static Create ( IFileAbstraction abstraction ) : |
||
abstraction | IFileAbstraction |
/// A |
Résultat |
public static Create ( IFileAbstraction abstraction, ReadStyle propertiesStyle ) : |
||
abstraction | IFileAbstraction |
/// A |
propertiesStyle | ReadStyle |
/// A |
Résultat |
public static Create ( IFileAbstraction abstraction, string mimetype, ReadStyle propertiesStyle ) : |
||
abstraction | IFileAbstraction |
/// A |
mimetype | string |
/// A |
propertiesStyle | ReadStyle |
/// A |
Résultat |
public static Create ( string path ) : |
||
path | string |
/// A |
Résultat |
public static Create ( string path, ReadStyle propertiesStyle ) : |
||
path | string |
/// A |
propertiesStyle | ReadStyle |
/// A |
Résultat |
public static Create ( string path, string mimetype, ReadStyle propertiesStyle ) : |
||
path | string |
/// A |
mimetype | string |
/// A |
propertiesStyle | ReadStyle |
/// A |
Résultat |
protected File ( IFileAbstraction abstraction ) : System | ||
abstraction | IFileAbstraction |
/// A |
Résultat | System |
protected File ( string path ) : System | ||
path | string |
/// A |
Résultat | System |
public Find ( ByteVector pattern ) : long | ||
pattern | ByteVector |
/// A |
Résultat | long |
public Find ( ByteVector pattern, long startPosition ) : long | ||
pattern | ByteVector |
/// A |
startPosition | long |
/// A |
Résultat | long |
public Find ( ByteVector pattern, long startPosition, ByteVector before ) : long | ||
pattern | ByteVector |
/// A |
startPosition | long |
/// A |
before | ByteVector |
/// A |
Résultat | long |
public Insert ( ByteVector data, long start ) : void | ||
data | ByteVector |
/// A |
start | long |
/// A |
Résultat | void |
public Insert ( ByteVector data, long start, long replace ) : void | ||
data | ByteVector |
/// A |
start | long |
/// A |
replace | long |
/// A |
Résultat | void |
public RFind ( ByteVector pattern ) : long | ||
pattern | ByteVector |
/// A |
Résultat | long |
public RFind ( ByteVector pattern, long startPosition ) : long | ||
pattern | ByteVector |
/// A |
startPosition | long |
/// A |
Résultat | long |
public ReadBlock ( int length ) : ByteVector | ||
length | int |
/// A |
Résultat | ByteVector |
public RemoveBlock ( long start, long length ) : void | ||
start | long |
/// A |
length | long |
/// A |
Résultat | void |
public Seek ( long offset ) : void | ||
offset | long |
/// A |
Résultat | void |
public Seek ( long offset, System origin ) : void | ||
offset | long |
/// A |
origin | System |
/// A |
Résultat | void |
protected Truncate ( long length ) : void | ||
length | long |
/// A |
Résultat | void |
public WriteBlock ( ByteVector data ) : void | ||
data | ByteVector |
/// A |
Résultat | void |