Class GcMFile

  • All Implemented Interfaces:
    Comparable<thredds.inventory.MFile>, thredds.inventory.MFile

    public class GcMFile
    extends Object
    implements thredds.inventory.MFile
    MFile stored in GC index
    Since:
    2/19/14
    • Field Detail

      • directory

        public final File directory
      • name

        public final String name
      • lastModified

        public final long lastModified
      • length

        public final long length
      • index

        public final int index
    • Method Detail

      • getLastModified

        public long getLastModified()
        Specified by:
        getLastModified in interface thredds.inventory.MFile
      • getLength

        public long getLength()
        Specified by:
        getLength in interface thredds.inventory.MFile
      • isDirectory

        public boolean isDirectory()
        Specified by:
        isDirectory in interface thredds.inventory.MFile
      • getPath

        public String getPath()
        Specified by:
        getPath in interface thredds.inventory.MFile
      • getName

        public String getName()
        Specified by:
        getName in interface thredds.inventory.MFile
      • getParent

        public thredds.inventory.MFile getParent()
        Specified by:
        getParent in interface thredds.inventory.MFile
      • compareTo

        public int compareTo​(thredds.inventory.MFile o)
        Specified by:
        compareTo in interface Comparable<thredds.inventory.MFile>
        Specified by:
        compareTo in interface thredds.inventory.MFile
      • getAuxInfo

        @Nullable
        public Object getAuxInfo()
        Specified by:
        getAuxInfo in interface thredds.inventory.MFile
      • setAuxInfo

        public void setAuxInfo​(Object info)
        Specified by:
        setAuxInfo in interface thredds.inventory.MFile
      • getDirectory

        public File getDirectory()
      • exists

        public boolean exists()
        Specified by:
        exists in interface thredds.inventory.MFile
      • writeToStream

        public void writeToStream​(OutputStream outputStream)
                           throws IOException
        Specified by:
        writeToStream in interface thredds.inventory.MFile
        Throws:
        IOException
      • writeToStream

        public void writeToStream​(OutputStream outputStream,
                                  long offset,
                                  long maxBytes)
                           throws IOException
        Specified by:
        writeToStream in interface thredds.inventory.MFile
        Throws:
        IOException
      • getChild

        public GcMFile getChild​(String newFilename)
        Specified by:
        getChild in interface thredds.inventory.MFile