Modifier and Type | Class and Description |
---|---|
class |
UCFPackage.ResourceEntry |
Modifier and Type | Field and Description |
---|---|
static String |
MIME_BINARY |
static String |
MIME_DATA_BUNDLE |
static String |
MIME_EPUB |
static String |
MIME_RDF |
static String |
MIME_SERVICE_BUNDLE |
static String |
MIME_TEXT_PLAIN |
static String |
MIME_TEXT_XML |
static String |
MIME_WORKFLOW_BUNDLE |
static String |
MIME_WORKFLOW_RUN_BUNDLE |
Constructor and Description |
---|
UCFPackage() |
UCFPackage(File containerFile) |
UCFPackage(InputStream inputStream) |
public static final String MIME_BINARY
public static final String MIME_TEXT_PLAIN
public static final String MIME_TEXT_XML
public static final String MIME_RDF
public static final String MIME_EPUB
public static final String MIME_WORKFLOW_BUNDLE
public static final String MIME_DATA_BUNDLE
public static final String MIME_WORKFLOW_RUN_BUNDLE
public static final String MIME_SERVICE_BUNDLE
public UCFPackage() throws IOException
IOException
public UCFPackage(File containerFile) throws IOException
IOException
public UCFPackage(InputStream inputStream) throws IOException
IOException
protected void open(File containerFile) throws IOException
IOException
protected void open(InputStream inputStream) throws IOException
IOException
protected void parseContainerXML() throws IOException
IOException
public String getPackageMediaType()
public void setPackageMediaType(String mediaType)
public void save(File packageFile) throws IOException
IOException
protected void prepareAndSave(File tempFile) throws IOException
IOException
protected void prepareContainerXML() throws IOException
IOException
protected static Marshaller createMarshaller() throws JAXBException
JAXBException
protected static Unmarshaller createUnMarshaller() throws JAXBException
JAXBException
protected static JAXBContext getJaxbContext() throws JAXBException
JAXBException
public void addResource(String stringValue, String path, String mediaType) throws IOException
IOException
public void addResource(byte[] bytesValue, String path, String mediaType) throws IOException
IOException
public void addResource(Document document, String path, String mediaType) throws IOException
IOException
public void addResource(InputStream inputStream, String path, String mediaType) throws IOException
IOException
public void addResource(URI uri, String path, String mediaType) throws IOException
IOException
public String getResourceAsString(String path) throws IOException
IOException
public byte[] getResourceAsBytes(String path) throws IOException
IOException
public InputStream getResourceAsInputStream(String path) throws IOException
IOException
public Map<String,UCFPackage.ResourceEntry> listResources()
public Map<String,UCFPackage.ResourceEntry> listResources(String folderPath)
protected Map<String,UCFPackage.ResourceEntry> listResources(String folderPath, boolean recursive)
public void removeResource(String path)
public Map<String,UCFPackage.ResourceEntry> listAllResources()
public void setRootFile(String path)
protected Container.RootFiles getRootFiles(Container container)
public List<UCFPackage.ResourceEntry> getRootFiles()
public UCFPackage.ResourceEntry getResourceEntry(String path)
public void unsetRootFile(String path)
protected JAXBElement<Container> getContainerXML()
public void save(OutputStream output) throws IOException
IOException
public OutputStream addResourceUsingOutputStream(String path, String mediaType) throws IOException
IOException
public UCFPackage clone()
Copyright © 2014 myGrid. All rights reserved.