Click or drag to resize

MappedFile Class

MappedFile is a utility class to read files on a file system. Because MappedFile file is derived from pdftron.Filters.Filter you can directly chain MappedFile objects to other 'pdftron.Filters'. MappedFile objects support random access to files using the Seek method. Seek allows the read/write position to be moved to any position within the file. This is done through a shared memory mapped chunk manager. The byte offset is relative to the seek reference point, which can be the beginning, the current position, or the end of the underlying file, as represented by the three properties of the Filter.ReferencePos class. MappedFile objects are thread-safe, meaning separate copies of a MappedFile can Seek to different locations in the file, without conflicting with one another. Disk files always support random access. At the time of construction, the CanSeek() property value is set to true or false depending on the underlying file type.
Inheritance Hierarchy
SystemObject
  pdftron.FiltersMappedFile

Namespace:  pdftron.Filters
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class MappedFile : IClosable, 
	IFilter

The MappedFile type exposes the following members.

Constructors
  NameDescription
Public methodMappedFile
Create a new instance of MappedFile class with the specified path and creation mode.
Top
Methods
  NameDescription
Public methodClose
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetDecodeName
Gets the deocde name of this Filter.
Public methodGetFilePath
Gets the path to the file.
Public methodGetFilterType
Returns the type of this filter.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetName
Gets the name of this Filter.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWinRTGetFileSize
Gets the size of the current file.
Public methodWriteToFile
Writes the entire filter, starting at current position, to specified filepath. Should only be called on an input filter.
Top
See Also