Class Document
- Namespace
- Textkernel.Tx.Models
- Assembly
- Textkernel.Tx.SDK.dll
Represents an unparsed document (a file on the filesystem, byte[] from a database, etc)
public class Document
- Inheritance
-
Document
- Inherited Members
Constructors
Document(byte[], DateTime)
Create a Document from a file byte[]
public Document(byte[] fileBytes, DateTime lastModified)
Parameters
fileBytes
byte[]The file byte array
lastModified
DateTimeThe last-revised date for this file.
This is extremely important so that the Parser knows how to interpret dates in the document that are expressed as "current" or "as of" (or similar) to correctly calculate date spans
Document(string)
Create a Document from a file on the filesystem.
NOTE: this will automatically set the LastModified using GetLastWriteTime(string).
If your files do not have an accurate 'LastWrite' or 'LastModified' time, you must use a different constructor
public Document(string path)
Parameters
path
string
Properties
AsBase64
The base-64 encoded byte[] for this file. This is what is sent over HTTPS to the API
public string AsBase64 { get; protected set; }
Property Value
LastModified
The last revised/modified date for this file.
public DateTime LastModified { get; protected set; }