Package de.gsi.dataset.utils
Class StreamUtils
- java.lang.Object
-
- de.gsi.dataset.utils.StreamUtils
-
public class StreamUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLASSPATH_PREFIXstatic java.lang.StringZIP_PREFIX
-
Constructor Summary
Constructors Constructor Description StreamUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.InputStreamgetInputStream(java.lang.String source)Get the resource from the file or the jar package From jar file has to be used prefix "classpath:" Zip file resource with prefix: "zip:"
-
-
-
Field Detail
-
CLASSPATH_PREFIX
public static final java.lang.String CLASSPATH_PREFIX
- See Also:
- Constant Field Values
-
ZIP_PREFIX
public static final java.lang.String ZIP_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInputStream
public static java.io.InputStream getInputStream(java.lang.String source) throws java.io.FileNotFoundExceptionGet the resource from the file or the jar package From jar file has to be used prefix "classpath:" Zip file resource with prefix: "zip:"- Parameters:
source- resource- Returns:
- input stream
- Throws:
java.io.FileNotFoundException- - if the file not found
-
-