Class ImageSource
- java.lang.Object
-
- org.apache.xmlgraphics.image.loader.ImageSource
-
-
Constructor Summary
Constructors Constructor Description ImageSource(ImageInputStream in, String systemId, boolean fastSource)Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageInputStreamgetImageInputStream()Returns the ImageInputStream.InputStreamgetInputStream()Returns an InputStream which operates on the underlying ImageInputStream.StringgetSystemId()booleanisFastSource()Indicates whether this ImageSource is a fast source, i.e.voidsetImageInputStream(ImageInputStream in)Sets the ImageInputStream.voidsetSystemId(String systemId)StringtoString()
-
-
-
Constructor Detail
-
ImageSource
public ImageSource(ImageInputStream in, String systemId, boolean fastSource)
Main constructor.- Parameters:
in- the ImageInputStream to load fromsystemId- the system identifier (resolved URI) of the imagefastSource- true if it's a fast source (accessing local files)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream()
Returns an InputStream which operates on the underlying ImageInputStream.- Returns:
- the InputStream or null if the stream has been closed
-
getImageInputStream
public ImageInputStream getImageInputStream()
Returns the ImageInputStream.- Returns:
- the ImageInputStream or null if the stream has been closed
-
setImageInputStream
public void setImageInputStream(ImageInputStream in)
Sets the ImageInputStream.- Parameters:
in- the ImageInputStream
-
getSystemId
public String getSystemId()
- Specified by:
getSystemIdin interfaceSource
-
setSystemId
public void setSystemId(String systemId)
- Specified by:
setSystemIdin interfaceSource
-
isFastSource
public boolean isFastSource()
Indicates whether this ImageSource is a fast source, i.e. accesses local files rather than network resources.- Returns:
- true if it's a fast source
-
-