Class InMemoryFile<T>

  • All Implemented Interfaces:
    org.reflections.vfs.Vfs.File
    Direct Known Subclasses:
    InMemoryClass, InMemoryResource

    public abstract class InMemoryFile<T>
    extends Object
    implements org.reflections.vfs.Vfs.File
    Author:
    epo.jemba@kametic.com
    • Field Detail

      • content

        protected T content
    • Constructor Detail

      • InMemoryFile

        public InMemoryFile​(T content)
    • Method Detail

      • getName

        public abstract String getName()
        Specified by:
        getName in interface org.reflections.vfs.Vfs.File
      • getRelativePath

        public abstract String getRelativePath()
        Specified by:
        getRelativePath in interface org.reflections.vfs.Vfs.File
      • openInputStream

        public InputStream openInputStream()
                                    throws IOException
        Specified by:
        openInputStream in interface org.reflections.vfs.Vfs.File
        Throws:
        IOException
      • getContent

        public T getContent()