org.codelabor.system.file.web.struts.action
Class FileDownloadAction.ByteArrayStreamInfo

java.lang.Object
  extended by org.codelabor.system.file.web.struts.action.FileDownloadAction.ByteArrayStreamInfo
All Implemented Interfaces:
org.apache.struts.actions.DownloadAction.StreamInfo
Enclosing class:
FileDownloadAction

public static class FileDownloadAction.ByteArrayStreamInfo
extends java.lang.Object
implements org.apache.struts.actions.DownloadAction.StreamInfo

바이크 배열 스트림 정보 클래스

Author:
Shin Sang-jae

Field Summary
protected  byte[] bytes
          바이트 배열
protected  java.lang.String contentType
          컨텐트 타입
 
Constructor Summary
FileDownloadAction.ByteArrayStreamInfo(java.lang.String contentType, byte[] bytes)
          생성자
 
Method Summary
 java.lang.String getContentType()
           
 java.io.InputStream getInputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentType

protected java.lang.String contentType
컨텐트 타입


bytes

protected byte[] bytes
바이트 배열

Constructor Detail

FileDownloadAction.ByteArrayStreamInfo

public FileDownloadAction.ByteArrayStreamInfo(java.lang.String contentType,
                                              byte[] bytes)
생성자

Parameters:
contentType - 컨탠트 타입
bytes - 바이트 배열
Method Detail

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface org.apache.struts.actions.DownloadAction.StreamInfo

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in interface org.apache.struts.actions.DownloadAction.StreamInfo
Throws:
java.io.IOException


Copyright © 2011 CODELABOR. All Rights Reserved.