org.apache.sling.jcr.contentloader.internal.readers
Class XmlReader.FileDescription
java.lang.Object
org.apache.sling.jcr.contentloader.internal.readers.XmlReader.FileDescription
- Enclosing class:
- XmlReader
protected static final class XmlReader.FileDescription
- extends java.lang.Object
Represents a reference to a file that is to be loaded into the repository. The file is referenced by an
XML element named <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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHARED
public static XmlReader.FileDescription SHARED
DATE_FORMAT
public static final java.text.DateFormat DATE_FORMAT
XmlReader.FileDescription
protected XmlReader.FileDescription()
setValues
public void setValues(XmlReader.AttributeMap attributes)
throws java.net.MalformedURLException,
java.text.ParseException
- Throws:
java.net.MalformedURLException
java.text.ParseException
create
public void create(ContentCreator creator)
throws javax.jcr.RepositoryException,
java.io.IOException
- Throws:
javax.jcr.RepositoryException
java.io.IOException
getUrl
public java.net.URL getUrl()
getMimeType
public java.lang.String getMimeType()
getLastModified
public java.lang.Long getLastModified()
clear
public void clear()
setBaseLocation
public void setBaseLocation(java.net.URL xmlLocation)
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.