public final class AFPResourceUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copyNamedResource(String name,
InputStream in,
OutputStream out)
Copy a named resource to a given
OutputStream. |
static void |
copyResourceFile(InputStream in,
OutputStream out)
Copy a complete resource file to a given
OutputStream. |
static byte[] |
getNext(byte[] identifier,
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,
InputStream inputStream)
throws IOException
identifier - the three byte identifierinputStream - the inputStreamIOException - if an I/O exception occurredpublic static void copyResourceFile(InputStream in, OutputStream out) throws IOException
OutputStream.in - external resource inputout - output destinationIOException - if an I/O error occurspublic static void copyNamedResource(String name, InputStream in, OutputStream out) throws 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 destinationIOException - if an I/O error occursCopyright © 2023 Apache Software Foundation. All rights reserved.