Package org.midheaven.io
Class ByteContentSourceReader<T extends ByteContent>
java.lang.Object
org.midheaven.io.ByteContentSourceReader<T>
- Type Parameters:
T- type ofByteContentthis reader will read
Represents Byte Content Source Reader.
-
Method Summary
Modifier and TypeMethodDescriptionembeddedResource(String resourcePath) Performs embeddedResource.empty()Returns an empty instance.from(byte[] bytes) Creates an instance from the provided source.from(InputStream inputStream) Creates an instance from the provided source.Creates an instance from the provided source.
-
Method Details
-
empty
Returns an empty instance.- Returns:
- the result of empty
-
from
Creates an instance from the provided source.- Parameters:
bytes- the bytes value- Returns:
- the result of from
-
from
Creates an instance from the provided source.- Parameters:
text- the text value- Returns:
- the result of from
-
from
Creates an instance from the provided source.- Parameters:
inputStream- the inputStream value- Returns:
- the result of from
-
embeddedResource
Performs embeddedResource.- Parameters:
resourcePath- the resourcePath value- Returns:
- the result of embeddedResource
-