Class ByteArrayMediaReader

java.lang.Object
cool.scx.http.media.byte_array.ByteArrayMediaReader
All Implemented Interfaces:
MediaReader<byte[]>

public final class ByteArrayMediaReader extends Object implements MediaReader<byte[]>

ByteArrayMediaReader

保持单例模式

Version:
0.0.1
Author:
scx567888
  • Field Details

  • Method Details

    • read

      public byte[] read(cool.scx.io.ByteInput byteInput, ScxHttpHeaders headers) throws cool.scx.io.exception.ScxIOException, cool.scx.io.exception.AlreadyClosedException
      Description copied from interface: MediaReader
      读取内容
      Specified by:
      read in interface MediaReader<byte[]>
      Parameters:
      byteInput - 输入流
      headers - 请求头 (在客户端状态下是 responseHeaders)
      Throws:
      cool.scx.io.exception.ScxIOException
      cool.scx.io.exception.AlreadyClosedException