Package thredds.inventory.zarr
Class MFileZip
- java.lang.Object
-
- thredds.inventory.zarr.MFileZip
-
- All Implemented Interfaces:
Comparable<thredds.inventory.MFile>,thredds.inventory.MFile
public class MFileZip extends Object implements thredds.inventory.MFile
Implements thredds.inventory.MFile for ZipFiles and ZipEntries
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMFileZip.Provider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(thredds.inventory.MFile o)booleanexists()ObjectgetAuxInfo()InputStreamgetInputStream()longgetLastModified()List<ZipEntry>getLeafEntries()longgetLength()StringgetName()thredds.inventory.MFilegetParent()StringgetPath()PathgetRelativePath()PathgetRootPath()booleanisDirectory()booleanisReadable()voidsetAuxInfo(Object info)voidwriteToStream(OutputStream outputStream)voidwriteToStream(OutputStream outputStream, long offset, long maxBytes)
-
-
-
Constructor Detail
-
MFileZip
public MFileZip(ZipFile file) throws IOException
- Throws:
IOException
-
MFileZip
public MFileZip(String filename) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfacethredds.inventory.MFile
-
getLength
public long getLength()
- Specified by:
getLengthin interfacethredds.inventory.MFile
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfacethredds.inventory.MFile
-
isReadable
public boolean isReadable()
- Specified by:
isReadablein interfacethredds.inventory.MFile
-
getPath
public String getPath()
- Specified by:
getPathin interfacethredds.inventory.MFile
-
getName
public String getName()
- Specified by:
getNamein interfacethredds.inventory.MFile
-
getParent
public thredds.inventory.MFile getParent()
- Specified by:
getParentin interfacethredds.inventory.MFile
-
compareTo
public int compareTo(thredds.inventory.MFile o)
- Specified by:
compareToin interfaceComparable<thredds.inventory.MFile>- Specified by:
compareToin interfacethredds.inventory.MFile
-
getAuxInfo
public Object getAuxInfo()
- Specified by:
getAuxInfoin interfacethredds.inventory.MFile
-
setAuxInfo
public void setAuxInfo(Object info)
- Specified by:
setAuxInfoin interfacethredds.inventory.MFile
-
exists
public boolean exists()
- Specified by:
existsin interfacethredds.inventory.MFile
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStreamin interfacethredds.inventory.MFile
-
writeToStream
public void writeToStream(OutputStream outputStream) throws IOException
- Specified by:
writeToStreamin interfacethredds.inventory.MFile- Throws:
IOException
-
writeToStream
public void writeToStream(OutputStream outputStream, long offset, long maxBytes) throws IOException
- Specified by:
writeToStreamin interfacethredds.inventory.MFile- Throws:
IOException
-
getRootPath
public Path getRootPath()
-
getRelativePath
public Path getRelativePath()
-
-