public class PrintTalkPackager
extends org.cip4.lib.xjdf.xml.internal.AbstractXmlPackager<org.cip4.lib.xprinttalk.schema.PrintTalk>
Constructor and Description |
---|
PrintTalkPackager(OutputStream out)
Create a new PrintTalkPackager.
|
PrintTalkPackager(Path zipPath,
OutputStream out)
Create a new PrintTalkPackager.
|
Modifier and Type | Method and Description |
---|---|
void |
packagePrintTalk(org.cip4.lib.xprinttalk.schema.PrintTalk ptk)
Packages a PrintTalk document to a zipped binary output stream.
|
void |
packagePrintTalk(org.cip4.lib.xprinttalk.schema.PrintTalk ptk,
String docName)
Packages a PrintTalk document.
|
protected byte[] |
parseDocument(org.cip4.lib.xprinttalk.schema.PrintTalk printTalk) |
public PrintTalkPackager(OutputStream out)
out
- The underlying OutputStream to write the package to.public PrintTalkPackager(Path zipPath, OutputStream out)
zipPath
- The path to an existing archive.out
- The underlying OutputStream to write the package to.protected final byte[] parseDocument(org.cip4.lib.xprinttalk.schema.PrintTalk printTalk) throws Exception
parseDocument
in class org.cip4.lib.xjdf.xml.internal.AbstractXmlPackager<org.cip4.lib.xprinttalk.schema.PrintTalk>
Exception
public final void packagePrintTalk(org.cip4.lib.xprinttalk.schema.PrintTalk ptk) throws Exception
ptk
- The PrintTalk document to package.Exception
- If packaging fails.public final void packagePrintTalk(org.cip4.lib.xprinttalk.schema.PrintTalk ptk, String docName) throws org.cip4.lib.xjdf.xml.internal.PackagerException, XPathExpressionException
ptk
- The PrintTalk document to package.docName
- Document's name in ZIP Package.org.cip4.lib.xjdf.xml.internal.PackagerException
- If the PTK could not be packaged.XPathExpressionException
- If the PTK could not be packaged.Copyright © 2016. All rights reserved.