iText 8.0.2 API
|
Factory to create RandomAccessSource objects based on various types of sources More...
Public Member Functions |
|
RandomAccessSourceFactory () | |
Creates a factory that will give preference to accessing the underling data source using memory mapped files More... |
|
RandomAccessSourceFactory | SetForceRead (bool forceRead) |
Determines whether the full content of the source will be read into memory More... |
|
RandomAccessSourceFactory | SetUsePlainRandomAccess (bool usePlainRandomAccess) |
Determines whether System.IO.FileStream should be used as the primary data access mechanism More... |
|
RandomAccessSourceFactory | SetExclusivelyLockFile (bool exclusivelyLockFile) |
IRandomAccessSource | CreateSource (byte[] data) |
Creates a RandomAccessSource based on a byte array More... |
|
IRandomAccessSource | CreateSource (FileStream raf) |
IRandomAccessSource | CreateSource (Uri url) |
Creates a RandomAccessSource based on a URL. The data available at the URL is read into memory and used as the source for the RandomAccessSource More... |
|
IRandomAccessSource | ExtractOrCreateSource (Stream inputStream) |
Creates or extracts a RandomAccessSource based on a System.IO.Stream If the InputStream is an instance of RASInputStream then extracts the source from it. Otherwise The full content of the InputStream is read into memory and used as the source for the RandomAccessSource More... |
|
IRandomAccessSource | CreateSource (Stream inputStream) |
Creates a RandomAccessSource based on an System.IO.Stream More... |
|
IRandomAccessSource | CreateBestSource (String filename) |
Creates a RandomAccessSource based on a filename string. If the filename describes a URL, a URL based source is created If the filename describes a file on disk, the contents may be read into memory (if forceRead is true), opened using memory mapped file channel (if usePlainRandomAccess is false), or opened using System.IO.FileStream access (if usePlainRandomAccess is true) This call will automatically fail over to using System.IO.FileStream if the memory map operation fails More... |
|
IRandomAccessSource | CreateRanged (IRandomAccessSource source, long[] ranges) |
Static Public Member Functions |
|
static void | SetForceReadDefaultValue (bool forceRead) |
Determines the default value for the forceRead flag More... |
|
Factory to create RandomAccessSource objects based on various types of sources
|
inline |
Creates a factory that will give preference to accessing the underling data source using memory mapped files
|
inline |
Creates a RandomAccessSource based on a filename string. If the filename describes a URL, a URL based source is created If the filename describes a file on disk, the contents may be read into memory (if forceRead
is true), opened using memory mapped file channel (if usePlainRandomAccess is false), or opened using System.IO.FileStream access (if usePlainRandomAccess is true) This call will automatically fail over to using System.IO.FileStream if the memory map operation fails
filename | the name of the file or resource to create the RandomAccessSource for |
|
inline |
Creates a RandomAccessSource based on a byte array
data | the byte array |
|
inline |
Creates a RandomAccessSource based on an System.IO.Stream
The full content of the InputStream is read into memory and used as the source for the RandomAccessSource
inputStream | the stream to read from |
|
inline |
Creates a RandomAccessSource based on a URL. The data available at the URL is read into memory and used as the source for the RandomAccessSource
url | the url to read from |
|
inline |
Creates or extracts a RandomAccessSource based on a System.IO.Stream If the InputStream is an instance of RASInputStream then extracts the source from it. Otherwise The full content of the InputStream is read into memory and used as the source for the RandomAccessSource
inputStream | the stream to read from |
|
inline |
Determines whether the full content of the source will be read into memory
forceRead | true if the full content will be read, false otherwise |
|
inlinestatic |
Determines the default value for the forceRead flag
forceRead | true if by default the full content will be read, false otherwise |
|
inline |
Determines whether System.IO.FileStream should be used as the primary data access mechanism
usePlainRandomAccess | whether System.IO.FileStream should be used as the primary data access mechanism |