public class Stream extends Object
Modifier and Type | Field and Description |
---|---|
static String |
IMAGE |
static String |
UNFILTERED |
Modifier and Type | Method and Description |
---|---|
List<String> |
getFilterList()
Return the available filter list.
|
BufferedImage |
getImage(PDResources resources)
Provide the image for stream.
|
InputStream |
getStream(String key)
Returns a InputStream of a partially filtered stream.
|
boolean |
isImage()
Return if this is stream is an Image XObject.
|
boolean |
isXmlMetadata()
Return if this is stream is an Metadata stream.
|
public static final String UNFILTERED
public static final String IMAGE
public boolean isImage()
public boolean isXmlMetadata()
public List<String> getFilterList()
public InputStream getStream(String key)
key
- is an instance of String which tells which version of stream should be returned.public BufferedImage getImage(PDResources resources)
resources
- PDResources for the XObject.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.