Class NamedByteContent

java.lang.Object
org.midheaven.io.ByteContent
org.midheaven.io.NamedByteContent

public class NamedByteContent extends ByteContent
Represents Named Byte Content.
  • Method Details

    • name

      public String name()
      Performs name.
      Returns:
      the result of name
    • read

      public static ByteContentBuilder read()
      Performs read.
      Returns:
      the result of read
    • readAsText

      public String readAsText()
      Performs readAsText.
      Overrides:
      readAsText in class ByteContent
      Returns:
      the result of readAsText
    • readAsInputStream

      public InputStream readAsInputStream()
      Performs readAsInputStream.
      Overrides:
      readAsInputStream in class ByteContent
      Returns:
      the result of readAsInputStream
    • writeTo

      public void writeTo(OutputStream out) throws IoException
      Performs writeTo.
      Overrides:
      writeTo in class ByteContent
      Parameters:
      out - the out value
      Throws:
      IoException
    • readAllBytes

      public byte[] readAllBytes()
      Performs readAllBytes.
      Specified by:
      readAllBytes in class ByteContent
      Returns:
      the result of readAllBytes
    • isEmpty

      public boolean isEmpty()
      Checks whether is Empty.
      Specified by:
      isEmpty in class ByteContent
      Returns:
      the result of isEmpty
    • size

      public ByteContentSize size()
      Performs size.
      Specified by:
      size in class ByteContent
      Returns:
      the result of size