Class FileHandle

java.lang.Object
com.marklogic.client.impl.HandleImplementation<R,W>
com.marklogic.client.io.BaseHandle<File,File>
com.marklogic.client.io.FileHandle
All Implemented Interfaces:
ContentDescriptor, AbstractReadHandle, AbstractWriteHandle, BinaryReadHandle, BinaryWriteHandle, BufferableContentHandle<File,File>, BufferableHandle, ContentHandle<File>, CtsQueryWriteHandle, DocumentMetadataReadHandle, DocumentMetadataWriteHandle, DocumentPatchHandle, GenericReadHandle, GenericWriteHandle, JSONReadHandle, JSONWriteHandle, QuadsWriteHandle, QueryOptionsListReadHandle, QueryOptionsReadHandle, QueryOptionsWriteHandle, ResendableContentHandle<File,File>, RuleListReadHandle, RuleReadHandle, RuleWriteHandle, SearchReadHandle, SPARQLResultsReadHandle, StructureReadHandle, StructureWriteHandle, TextReadHandle, TextWriteHandle, TriplesReadHandle, TriplesWriteHandle, TuplesReadHandle, ValuesListReadHandle, ValuesReadHandle, XMLReadHandle, XMLWriteHandle

A File Handle represents document content as a file for reading or writing. When you read a database document into a file handle, the API creates a temporary file. You can then open the file or move it with the File.renameTo() method. When writing JSON, text, or XML content, you should use a File only if the file is encoded in UTF-8. If the characters have a different encoding, use a ReaderHandle and specify the correct character encoding for the file when creating the Reader.