protected static final class XmlReader.FileDescription extends Object
<nt:file>
, with the attributes src
,
mimeType
and lastModified
. <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.Modifier and Type | Field and Description |
---|---|
static DateFormat |
DATE_FORMAT |
static XmlReader.FileDescription |
SHARED |
Modifier | Constructor and Description |
---|---|
protected |
FileDescription() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
create(ContentCreator creator) |
Long |
getLastModified() |
String |
getMimeType() |
URL |
getUrl() |
void |
setBaseLocation(URL xmlLocation) |
void |
setValues(XmlReader.AttributeMap attributes) |
public static XmlReader.FileDescription SHARED
public static final DateFormat DATE_FORMAT
public void setValues(XmlReader.AttributeMap attributes) throws MalformedURLException, ParseException
MalformedURLException
ParseException
public void create(ContentCreator creator) throws javax.jcr.RepositoryException, IOException
javax.jcr.RepositoryException
IOException
public URL getUrl()
public String getMimeType()
public Long getLastModified()
public void clear()
public void setBaseLocation(URL xmlLocation)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.