Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

TagLib::Tiff::Arw::File Class Reference

Inheritance diagram for TagLib::Tiff::Arw::File:

TagLib::Tiff::File TagLib::Tiff::BaseTiffFile TagLib::Image::File TagLib::File

List of all members.


Detailed Description

This class extends TagLib.Tiff.File to provide tagging for ARW image files.

Definition at line 42 of file File.cs.


Public Types

enum  AccessMode { Read, Write, Closed }
 Specifies the type of file access operations currently permitted on an instance of File. More...

Public Member Functions

void CopyFrom (TagLib.Image.File file)
 Copies metadata from the given file..
void Dispose ()
 Dispose the current file. Equivalent to setting the mode to closed.
void EnsureAvailableTags ()
 The method creates all tags which are allowed for the current instance of the image file. This method can be used to ensure, that all tags are in place and properties can be safely used to set values.
 File (File.IFileAbstraction abstraction, ReadStyle propertiesStyle)
 Constructs and initializes a new instance of File for a specified file abstraction and specified read style.
 File (string path)
 Constructs and initializes a new instance of File for a specified path in the local file system.
 File (string path, ReadStyle propertiesStyle)
 Constructs and initializes a new instance of File for a specified path in the local file system and specified read style.
delegate File FileTypeResolver (IFileAbstraction abstraction, string mimetype, ReadStyle style)
 This delegate is used for intervening in File.Create(string) by resolving the file type before any standard resolution operations.
long Find (ByteVector pattern)
 Searches forwards through a file for a specified pattern, starting at the beginning of the file.
long Find (ByteVector pattern, long startPosition)
 Searches forwards through a file for a specified pattern, starting at a specified offset.
long Find (ByteVector pattern, long startPosition, ByteVector before)
 Searches forwards through a file for a specified pattern, starting at a specified offset.
Tag GetTag (TagTypes type)
 Gets a tag of a specified type from the current instance.
abstract Tag GetTag (TagTypes type, bool create)
 Gets a tag of a specified type from the current instance, optionally creating a new tag if possible.
override TagLib.Tag GetTag (TagLib.TagTypes type, bool create)
 Gets a tag of a specified type from the current instance, optionally creating a new tag if possible.
void Insert (ByteVector data, long start)
 Inserts a specifed block of data into the file repesented by the current instance at a specified location.
void Insert (ByteVector data, long start, long replace)
 Inserts a specifed block of data into the file repesented by the current instance at a specified location, replacing a specified number of bytes.
ByteVector ReadBlock (int length)
 Reads a specified number of bytes at the current seek position from the current instance.
void RemoveBlock (long start, long length)
 Removes a specified block of data from the file represented by the current instance.
abstract void RemoveTags (TagTypes types)
 Removes a set of tag types from the current instance.
override void RemoveTags (TagLib.TagTypes types)
 Removes a set of tag types from the current instance.
long RFind (ByteVector pattern)
 Searches backwards through a file for a specified pattern, starting at the end of the file.
long RFind (ByteVector pattern, long startPosition)
 Searches backwards through a file for a specified pattern, starting at a specified offset.
override void Save ()
 Saves the changes made in the current instance to the file it represents.
void Seek (long offset)
 Seeks the read/write pointer to a specified offset in the current instance, relative to the beginning of the file.
void Seek (long offset, System.IO.SeekOrigin origin)
 Seeks the read/write pointer to a specified offset in the current instance, relative to a specified origin.
void WriteBlock (ByteVector data)
 Writes a block of data to the file represented by the current instance at the current seek position.

Static Public Member Functions

static void AddFileTypeResolver (FileTypeResolver resolver)
 Adds a FileTypeResolver to the File class. The one added last gets run first.
static File 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.
static File Create (string path, string mimetype, ReadStyle propertiesStyle)
 Creates a new instance of a File subclass for a specified path, mime-type, and read style.
static File 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.
static File 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.
static File 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.
static File 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.

Protected Member Functions

override Codec CreateCodec (int width, int height)
 Create a codec that describes the photo properties.
virtual IFDReader CreateIFDReader (BaseTiffFile file, bool is_bigendian, IFDStructure structure, long base_offset, uint ifd_offset, uint max_offset)
 Creates an IFD reader to parse the file.
 File (IFileAbstraction abstraction)
 Constructs and initializes a new instance of File for a specified file abstraction.
void Read (ReadStyle propertiesStyle)
 Reads the file with a specified read style.
uint ReadHeader ()
 Reads and validates the TIFF header at the current position.
void ReadIFD (uint offset, int ifd_count)
 Reads a certain number of IFDs starting from the given offset.
void ReadIFD (uint offset)
 Reads IFDs starting from the given offset.
ByteVector RenderHeader (uint first_ifd_offset)
 Renders a TIFF header with the given offset to the first IFD. The returned data has length 8.
void Truncate (long length)
 Resized the current instance to a specified number of bytes.

Properties

static uint BufferSize [get]
 The buffer size to use when reading large blocks of data in the File class.
CombinedImageTag ImageTag [get, set]
 Gets a abstract representation of all tags stored in the current instance.
long InvariantEndPosition [get, set]
 Gets the position at which the invariant portion of the current instance ends.
long InvariantStartPosition [get, set]
 Gets the position at which the invariant portion of the current instance begins.
bool IsBigEndian [get, set]
 Indicates if the current file is in big endian or little endian format.
long Length [get]
 Gets the length of the file represented by the current instance.
ushort Magic [get, set]
 The identifier used to recognize the file. This is 42 for most TIFF files.
string MimeType [get, set]
 Gets the mime-type of the file as determined by Create(IFileAbstraction,string,ReadStyle) if that method was used to create the current instance.
AccessMode Mode [get, set]
 Gets and sets the file access mode in use by the current instance.
string Name [get]
 Gets the name of the file as stored in its file abstraction.
virtual bool PossiblyCorrupt [get, set]
 Indicates whether or not this file may be corrupt.
override TagLib.Properties Properties [get]
 Gets the media properties of the file represented by the current instance.
override Tag Tag [get]
 Gets a abstract representation of all tags stored in the current instance.
TagTypes TagTypes [get]
 Gets the tag types contained in the current instance.
TagTypes TagTypesOnDisk [get, set]
 Gets the tag types contained in the physical file represented by the current instance.
long Tell [get]
 Gets the seek position in the internal stream used by the current instance.
override bool Writeable [get]
 Indicates if tags can be written back to the current file or not.

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

Generated by  Doxygen 1.6.0   Back to index