Class RamFileData

  • All Implemented Interfaces:
    java.io.Serializable

    class RamFileData
    extends java.lang.Object
    implements java.io.Serializable
    RAM File Object Data.
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        serialVersionUID format is YYYYMMDD for the date of the last binary change.
        See Also:
        Constant Field Values
      • name

        private FileName name
        File Name.
      • type

        private FileType type
        File Type.
      • content

        private byte[] content
        Bytes.
      • lastModifiedMillis

        private long lastModifiedMillis
        Last modified time
      • children

        private final java.util.Collection<RamFileData> children
        Children
    • Constructor Detail

      • RamFileData

        public RamFileData​(FileName name)
        Constructor.
        Parameters:
        name - The file name.
    • Method Detail

      • getContent

        byte[] getContent()
        Returns:
        Returns the buffer.
      • setContent

        void setContent​(byte[] content)
        Parameters:
        content - The buffer.
      • getLastModified

        long getLastModified()
        Returns:
        Returns the lastModified.
      • setLastModified

        void setLastModified​(long lastModified)
        Parameters:
        lastModified - The lastModified to set.
      • getType

        FileType getType()
        Returns:
        Returns the type.
      • setType

        void setType​(FileType type)
        Parameters:
        type - The type to set.
      • clear

        void clear()
      • updateLastModified

        void updateLastModified()
      • getName

        FileName getName()
        Returns:
        Returns the name.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getChildren

        java.util.Collection<RamFileData> getChildren()
        Returns:
        Returns the children.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • hasChildren

        boolean hasChildren​(RamFileData data)
      • size

        int size()
        Returns:
        Returns the size of the buffer
      • resize

        void resize​(long newSize)
        Resize the buffer
        Parameters:
        newSize - The new buffer size.