public final class XmlSourceUtil
extends java.lang.Object
Source
objects, more specficially the streams that back
the Source
.Modifier and Type | Method | Description |
---|---|---|
static void |
closeQuietly(javax.xml.transform.Source src) |
Closes the InputStreams or ImageInputStreams of Source objects.
|
static java.io.InputStream |
getInputStream(javax.xml.transform.Source src) |
Returns the
InputStream that is backing the given Source object. |
static boolean |
hasInputStream(javax.xml.transform.Source src) |
Indicates whether the Source object has an InputStream instance.
|
static boolean |
hasReader(javax.xml.transform.Source src) |
Indicates whether the Source object has a Reader instance.
|
static java.io.InputStream |
needInputStream(javax.xml.transform.Source src) |
Returns the InputStream of a Source object.
|
static void |
removeStreams(javax.xml.transform.Source src) |
Removes any references to InputStreams or Readers from the given Source to prohibit
accidental/unwanted use by a component further downstream.
|
public static java.io.InputStream getInputStream(javax.xml.transform.Source src)
InputStream
that is backing the given Source
object.src
- is backed by an InputStream
public static java.io.InputStream needInputStream(javax.xml.transform.Source src)
src
- the Source objectpublic static boolean hasReader(javax.xml.transform.Source src)
src
- the Source objectpublic static void removeStreams(javax.xml.transform.Source src)
src
- the Source objectpublic static void closeQuietly(javax.xml.transform.Source src)
src
- the Source objectpublic static boolean hasInputStream(javax.xml.transform.Source src)
src
- the Source objectCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.