Class JarInput

java.lang.Object
javax0.jamal.jar.input.JarInput
All Implemented Interfaces:
javax0.jamal.api.ResourceReader, javax0.jamal.api.ServiceLoaded

public class JarInput extends Object implements javax0.jamal.api.ResourceReader
JarInput can read a file which is inside an archive file.

The format of the reference is

     jar:file://path_to_the_JAR_file!path_inside_the_jar_to_the_file
 
  • Field Details

  • Constructor Details

    • JarInput

      public JarInput()
  • Method Details

    • canRead

      public boolean canRead(String fileName)
      Specified by:
      canRead in interface javax0.jamal.api.ResourceReader
    • fileStart

      public int fileStart(String fileName)
      Specified by:
      fileStart in interface javax0.jamal.api.ResourceReader
    • read

      public String read(String fileName) throws IOException
      Specified by:
      read in interface javax0.jamal.api.ResourceReader
      Throws:
      IOException
    • read

      public String read(String fileName, boolean noCache) throws IOException
      Specified by:
      read in interface javax0.jamal.api.ResourceReader
      Throws:
      IOException