Package org.hl7.fhir.utilities.npm
Class NpmPackage.NpmPackageFolder
- java.lang.Object
-
- org.hl7.fhir.utilities.npm.NpmPackage.NpmPackageFolder
-
- Enclosing class:
- NpmPackage
public class NpmPackage.NpmPackageFolder extends Object
-
-
Constructor Summary
Constructors Constructor Description NpmPackageFolder(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdump()byte[]fetchFile(String file)Map<String,byte[]>getContent()StringgetName()Map<String,List<String>>getTypes()booleanhasFile(String file)List<String>listFiles()booleanreadIndex(JsonObject index)voidremoveFile(String n)
-
-
-
Constructor Detail
-
NpmPackageFolder
public NpmPackageFolder(String name)
-
-
Method Detail
-
readIndex
public boolean readIndex(JsonObject index)
-
getContent
public Map<String,byte[]> getContent()
-
fetchFile
public byte[] fetchFile(String file) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
hasFile
public boolean hasFile(String file) throws IOException
- Throws:
IOException
-
removeFile
public void removeFile(String n) throws IOException
- Throws:
IOException
-
-