public class LocalFileSource extends LocalFile implements FileSource
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Constructor and Description |
---|
LocalFileSource() |
Modifier and Type | Method and Description |
---|---|
LocalFileSource |
detectFileType() |
LocalFileSource |
fromRecord(Record source)
Loads this instance's state from a record and returns
this (for fluid API call chaining). |
LocalFileSource |
fromXmlElement(Element element) |
InputStream |
getInputStream() |
LocalFileSource |
setFileType(FileType fileType) |
LocalFileSource |
setName(String name) |
LocalFileSource |
setNameFromPath() |
LocalFileSource |
setPath(String path) |
Element |
toXmlElement(Document document) |
getContentType, getFile, getFileSize, getFileType, getName, getPath, getUrlPath, isLocal, toRecord
addExceptionProperties, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContentType, getFileSize, getFileType, getName, getPath, getUrlPath, isLocal
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord, toRecord
newInstanceFromJson
forEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXml
addExceptionProperties, contributeExceptionProperties, contributeExceptionProperties, exception, exception, exception
public InputStream getInputStream()
getInputStream
in interface FileSource
public LocalFileSource setName(String name)
public LocalFileSource setPath(String path)
public LocalFileSource setNameFromPath()
setNameFromPath
in class LocalFile
public LocalFileSource setFileType(FileType fileType)
setFileType
in class LocalFile
public LocalFileSource fromRecord(Record source)
RecordSerializable
this
(for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord
in interface RecordSerializable
fromRecord
in interface FileSource
fromRecord
in class LocalFile
public LocalFileSource detectFileType()
detectFileType
in class LocalFile
public Element toXmlElement(Document document)
toXmlElement
in interface XmlSerializable
toXmlElement
in class LocalFile
public LocalFileSource fromXmlElement(Element element)
fromXmlElement
in interface XmlSerializable
fromXmlElement
in class LocalFile
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.