public final class PatchParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static PatchInfo |
parse(InputStream patchContents,
boolean captureDescriptors)
Tries to find if the provided input stream is a Wildfly patch file and return information about the patch parsed
out of it.
|
public static PatchInfo parse(InputStream patchContents, boolean captureDescriptors) throws IOException, XMLStreamException
patchContents - the contents of the patch filecaptureDescriptors - whether to store the full contents of the patch XML descriptors in the returned infoIOException - on IO error or if the stream is not in a valid ZIP formatXMLStreamException - on error parsing XML patch descriptors (patch.xml or patches.xml files inside the
ZIP)Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.