public class Manifest extends Object
Modifier and Type | Class and Description |
---|---|
class |
Manifest.FileTimeMixin |
class |
Manifest.PathMixin |
public Manifest(Bundle bundle)
public static FileTime now()
public List<PathMetadata> getAggregates()
public PathMetadata getAggregation(Path file)
public PathMetadata getAggregation(URI uri)
public List<PathAnnotation> getAnnotations()
public FileTime getAuthoredOn()
public URI getBaseURI()
public Bundle getBundle()
public Agent getCreatedBy()
public FileTime getCreatedOn()
public URI getId()
public String guessMediaType(Path file)
file
- A Path to a fileapplication/xml
or
text/plain; charset="utf-8"
http://wf4ever.github.io/ro/bundle/#media-types
public void populateFromBundle() throws IOException
IOException
public void setAggregates(List<PathMetadata> aggregates)
public void setAnnotations(List<PathAnnotation> annotations)
public void setAuthoredOn(FileTime authoredOn)
public void setBundle(Bundle bundle)
public void setCreatedBy(Agent createdBy)
public void setCreatedOn(FileTime createdOn)
public void setId(URI id)
public void writeAsCombineManifest() throws IOException
IOException
public Path writeAsJsonLD() throws IOException
IOException
public Path writeAsODFManifest() throws IOException
IOException
://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part3.
html#__RefHeading__752807_826425813
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.