Class KabVFSSource

java.lang.Object
com.tccc.kos.commons.core.vfs.AbstractVFSSource
com.tccc.kos.commons.core.vfs.KabVFSSource
All Implemented Interfaces:
VFSParent, VFSSource

public class KabVFSSource extends AbstractVFSSource implements VFSParent
Class that wraps a KAB file.
Since:
1.0
Version:
2022-08-30
  • Constructor Details

    • KabVFSSource

      public KabVFSSource(KabFile kab)
      Creates a VFS source wrapper for the KAB file.
  • Method Details

    • getInputStream

      public InputStream getInputStream(String path)
      Retrieves the input stream for the given path.
      Specified by:
      getInputStream in interface VFSSource
      Parameters:
      path - the requested path
      Returns:
      the input stream
    • getBasePath

      public String getBasePath(VFSSource source)
      Retrieves the base path for the given VFS source.
      Specified by:
      getBasePath in interface VFSParent
      Parameters:
      source - the source to return the base path for
      Returns:
      the base path
    • getDetails

      public JsonViewWrapper getDetails()
      Description copied from interface: VFSSource
      Return details for the json view.
      Specified by:
      getDetails in interface VFSSource
    • toString

      public String toString()
      Overrides:
      toString in class Object