All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jianggujin.http.response.JByteResponse Maven / Gradle / Ivy

package com.jianggujin.http.response;

import java.io.IOException;
import java.io.InputStream;

import com.jianggujin.http.util.JDataUtils;

/**
 * 字节数组响应
 * 
 * @author jianggujin
 *
 */
public class JByteResponse extends JAbstractResponse {

   @Override
   protected void dealData(InputStream stream) throws IOException {
      this.data = JDataUtils.readToByteBuffer(stream).array();
   }

   public byte[] getBytes() {
      return (byte[]) this.data;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy