public class ZipFileSpecification extends Object implements IZipFileSpecification
| Constructor and Description |
|---|
ZipFileSpecification(File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this archive
|
Reader |
createReader()
Creates a new Reader for the contents of file.
|
Iterator<String> |
getEntries()
Returns an iterator to the names of all the entries in this zip file
|
InputStream |
getEntryStream(String name)
Creates a stream to a given entry within the SWC file
|
long |
getLastModified()
Get the last modified timestamp of the file
|
String |
getPath()
Returns the path of the file.
|
boolean |
hasEntry(String entryName)
Determines if the given entry exists within this archive
|
boolean |
isOpenDocument() |
public ZipFileSpecification(File file) throws ZipException, IOException
ZipExceptionIOExceptionpublic Iterator<String> getEntries()
IZipFileSpecificationgetEntries in interface IZipFileSpecificationIteratorpublic InputStream getEntryStream(String name) throws IOException
IZipFileSpecificationgetEntryStream in interface IZipFileSpecificationname - the name of the entry we wantInputStream or nullIOExceptionpublic void close()
throws IOException
IZipFileSpecificationclose in interface Closeableclose in interface AutoCloseableclose in interface IZipFileSpecificationIOExceptionpublic boolean hasEntry(String entryName)
IZipFileSpecificationhasEntry in interface IZipFileSpecificationentryName - the name of the entrypublic Reader createReader() throws FileNotFoundException
IFileSpecificationcreateReader in interface IFileSpecificationFileNotFoundExceptionpublic long getLastModified()
IFileSpecificationgetLastModified in interface IFileSpecificationpublic String getPath()
IFileSpecificationgetPath in interface IFileSpecificationpublic boolean isOpenDocument()
isOpenDocument in interface IFileSpecificationIFileSpecification.createReader() method returns a reader that reads the live
document buffer.Copyright © 2016 The Apache Software Foundation. All rights reserved.