public final class AFPResourceUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copyNamedResource(java.lang.String name,
java.io.InputStream in,
java.io.OutputStream out)
Copy a named resource to a given
OutputStream. |
static void |
copyResourceFile(java.io.InputStream in,
java.io.OutputStream out)
Copy a complete resource file to a given
OutputStream. |
static byte[] |
getNext(byte[] identifier,
java.io.InputStream inputStream)
Get the next structured field as identified by the identifier
parameter (this must be a valid MO:DCA structured field).
|
public static byte[] getNext(byte[] identifier,
java.io.InputStream inputStream)
throws java.io.IOException
identifier - the three byte identifierinputStream - the inputStreamjava.io.IOException - if an I/O exception occurredpublic static void copyResourceFile(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
OutputStream.in - external resource inputout - output destinationjava.io.IOException - if an I/O error occurspublic static void copyNamedResource(java.lang.String name,
java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
OutputStream. The MO:DCA fields read from the
InputStream are scanned for the resource with the given name.name - name of structured fieldin - external resource inputout - output destinationjava.io.IOException - if an I/O error occursCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.