Class XmlReader.FileDescription
java.lang.Object
org.apache.sling.jcr.contentloader.internal.readers.XmlReader.FileDescription
- Enclosing class:
- XmlReader
Represents a reference to a file that is to be loaded into the repository.
The file is referenced by an XML element named
Example:
<nt:file>,
with the attributes src, mimeType and
lastModified. Example:
<nt:file src="../../image.png" mimeType="image/png" lastModified="1977-06-01T07:00:00+0100" />The date format for
lastModified is
yyyy-MM-dd'T'HH:mm:ssZ. The lastModified attribute
is optional. If missing, the last modified date reported by the filesystem
will be used.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidcreate(ContentCreator creator) getUrl()voidsetBaseLocation(URL xmlLocation) voidsetValues(XmlReader.AttributeMap attributes)
-
Field Details
-
SHARED
-
DATE_FORMAT
-
-
Constructor Details
-
FileDescription
protected FileDescription()
-
-
Method Details
-
setValues
public void setValues(XmlReader.AttributeMap attributes) throws MalformedURLException, ParseException - Throws:
MalformedURLExceptionParseException
-
create
- Throws:
javax.jcr.RepositoryExceptionIOException
-
getUrl
-
getMimeType
-
getLastModified
-
clear
public void clear() -
setBaseLocation
-