Package org.hl7.fhir.utilities
Class ByteProvider
- java.lang.Object
-
- org.hl7.fhir.utilities.ByteProvider
-
public abstract class ByteProvider extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ByteProviderforBytes(byte[] bytes)static ByteProviderforFile(File ff)static ByteProviderforFile(String src)static ByteProviderforStream(InputStream stream)abstract byte[]getBytes()
-
-
-
Constructor Detail
-
ByteProvider
public ByteProvider()
-
-
Method Detail
-
getBytes
public abstract byte[] getBytes() throws FileNotFoundException, IOException
- Throws:
FileNotFoundExceptionIOException
-
forStream
public static ByteProvider forStream(InputStream stream) throws IOException
- Throws:
IOException
-
forBytes
public static ByteProvider forBytes(byte[] bytes)
-
forFile
public static ByteProvider forFile(File ff)
-
forFile
public static ByteProvider forFile(String src) throws IOException
- Throws:
IOException
-
-