|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlgraphics.io.XmlSourceUtil
public final class XmlSourceUtil
A utility class for handling Source objects, more specficially the streams that back
the Source.
| Method Summary | |
|---|---|
static void |
closeQuietly(Source src)
Closes the InputStreams or ImageInputStreams of Source objects. |
static InputStream |
getInputStream(Source src)
Returns the InputStream that is backing the given Source object. |
static boolean |
hasInputStream(Source src)
Indicates whether the Source object has an InputStream instance. |
static boolean |
hasReader(Source src)
Indicates whether the Source object has a Reader instance. |
static InputStream |
needInputStream(Source src)
Returns the InputStream of a Source object. |
static void |
removeStreams(Source src)
Removes any references to InputStreams or Readers from the given Source to prohibit accidental/unwanted use by a component further downstream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static InputStream getInputStream(Source src)
InputStream that is backing the given Source object.
src - is backed by an InputStream
public static InputStream needInputStream(Source src)
src - the Source object
public static boolean hasReader(Source src)
src - the Source object
public static void removeStreams(Source src)
src - the Source objectpublic static void closeQuietly(Source src)
src - the Source objectpublic static boolean hasInputStream(Source src)
src - the Source object
|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||