public class PDFViewerStorage.PDFFile extends Object implements ContentReader
| Modifier and Type | Class and Description |
|---|---|
class |
PDFViewerStorage.PDFFile.ImageFile |
protected class |
PDFViewerStorage.PDFFile.PageKey |
| Modifier and Type | Field and Description |
|---|---|
protected File |
file |
protected PDFViewerStorage.FileKey |
key |
protected long |
lastAcccessed |
protected long |
lastModified |
protected Map<String,String> |
metadata |
protected String |
name |
protected int |
numberOfPages |
protected ConcurrentHashMap<PDFViewerStorage.PDFFile.PageKey,PDFViewerStorage.PDFFile.ImageFile> |
pages |
| Modifier | Constructor and Description |
|---|---|
protected |
PDFViewerStorage.PDFFile(PDFViewerStorage.FileKey key,
File file,
String name,
long lastModified,
org.icepdf.core.pobjects.Document document) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
exists() |
long |
getLastAcccessed() |
long |
getLastModified() |
long |
getLength()
Content length in bytes.
|
Map<String,String> |
getMetadata() |
String |
getMimeType()
Content type in MIME format.
|
String |
getName() |
int |
getNumberOfPages() |
PDFViewerStorage.PDFFile.ImageFile |
getPageImage(int page,
float rotation,
float scale) |
InputStream |
getStream()
Content stream for reading.
|
String |
getTypeMode()
Optional representation (UI) mode for this content type.
|
boolean |
remove() |
String |
toString() |
protected final PDFViewerStorage.FileKey key
protected final File file
protected final String name
protected final long lastModified
protected final int numberOfPages
protected final ConcurrentHashMap<PDFViewerStorage.PDFFile.PageKey,PDFViewerStorage.PDFFile.ImageFile> pages
protected long lastAcccessed
protected PDFViewerStorage.PDFFile(PDFViewerStorage.FileKey key, File file, String name, long lastModified, org.icepdf.core.pobjects.Document document)
public boolean remove()
public boolean exists()
public int getNumberOfPages()
public long getLastModified()
public long getLastAcccessed()
public String getName()
public PDFViewerStorage.PDFFile.ImageFile getPageImage(int page, float rotation, float scale) throws IOException
IOExceptionpublic InputStream getStream()
ContentReadergetStream in interface ContentReaderInputStreampublic String getMimeType()
getMimeType in interface ContentReaderStringpublic String getTypeMode()
null.getTypeMode in interface ContentReaderString a type mode or null if not available.public long getLength()
getLength in interface ContentReaderLongCopyright © 2003–2015 eXo Platform SAS. All rights reserved.