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 folderName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdump()byte[]fetchFile(String file)Map<String,byte[]>getContent()StringgetFolderName()StringgetFolderPath()ByteProvidergetProvider(String file)Map<String,List<String>>getTypes()booleanhasFile(String file)JsonObjectindex()List<String>listFiles()JsonObjectoidIndex()booleanreadIndex(JsonObject index, Map<String,List<String>> typeMap)voidremoveFile(String n)
-
-
-
Constructor Detail
-
NpmPackageFolder
public NpmPackageFolder(String folderName)
-
-
Method Detail
-
getTypes
public Map<String,List<String>> getTypes() throws JsonException, IOException
- Throws:
JsonExceptionIOException
-
getFolderName
public String getFolderName()
-
getFolderPath
public String getFolderPath()
-
getContent
public Map<String,byte[]> getContent()
-
fetchFile
public byte[] fetchFile(String file) throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
getProvider
public ByteProvider getProvider(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
-
index
public JsonObject index() throws IOException
- Throws:
IOException
-
oidIndex
public JsonObject oidIndex() throws IOException
- Throws:
IOException
-
-