Package org.midheaven.io
Class NamedByteContent
java.lang.Object
org.midheaven.io.ByteContent
org.midheaven.io.NamedByteContent
Represents Named Byte Content.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()Checks whether is Empty.name()Performs name.static ByteContentBuilderread()Performs read.byte[]Performs readAllBytes.Performs readAsInputStream.Performs readAsText.size()Performs size.voidwriteTo(OutputStream out) Performs writeTo.Methods inherited from class org.midheaven.io.ByteContent
create, equals, format, hasSameContentAs
-
Method Details
-
name
Performs name.- Returns:
- the result of name
-
read
Performs read.- Returns:
- the result of read
-
readAsText
Performs readAsText.- Overrides:
readAsTextin classByteContent- Returns:
- the result of readAsText
-
readAsInputStream
Performs readAsInputStream.- Overrides:
readAsInputStreamin classByteContent- Returns:
- the result of readAsInputStream
-
writeTo
Performs writeTo.- Overrides:
writeToin classByteContent- Parameters:
out- the out value- Throws:
IoException
-
readAllBytes
public byte[] readAllBytes()Performs readAllBytes.- Specified by:
readAllBytesin classByteContent- Returns:
- the result of readAllBytes
-
isEmpty
public boolean isEmpty()Checks whether is Empty.- Specified by:
isEmptyin classByteContent- Returns:
- the result of isEmpty
-
size
Performs size.- Specified by:
sizein classByteContent- Returns:
- the result of size
-