xecure.file
Class XecureFileOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjavax.servlet.ServletOutputStream
          extended byxecure.file.XecureFileOutputStream

public class XecureFileOutputStream
extends javax.servlet.ServletOutputStream

XecureFileOutputStream Ŭ·¡½º´Â XecureWeb À» Àû¿ëÇÑ ¼­ºí¸´, JSP ¿¡¼­ »ç¿ëµÇ´Â OutputStream ÀÌ´Ù. ÀÌ OutputStream À» ÅëÇØ Response µÇ´Â µ¥ÀÌŸ¸¦ ¾Ïȣȭ ÇÑ´Ù.


Field Summary
 javax.servlet.http.HttpServletResponse rep
           
 javax.servlet.http.HttpServletRequest req
           
 
Constructor Summary
XecureFileOutputStream(XecureSession xecureSession, XecureHttpServletRequest request, XecureHttpServletResponse response, javax.servlet.ServletOutputStream out)
          XecureFileOutputStream constructor
 
Method Summary
 void close()
          close of ServletOutputStream
 void fileDownload()
          ÆÄÀÏ ´Ù¿î·Îµå ÇÔ¼ö download the file requested with "filePath"parameter of FileDownload function of Client control.
 void fileDownload(java.lang.String filename)
          ÆÄÀÏ ´Ù¿î·Îµå ÇÔ¼ö
 void fileDownload(java.lang.String filename, java.lang.String dispName)
          ÆÄÀÏ ´Ù¿î·Îµå ÇÔ¼ö
 void flush()
          flush of ServletOutputStream
 java.lang.String getFileName()
          flush of ServletOutputStream
 void print(java.lang.String s)
          Print string.
 void println()
          Print linefeed.
 void println(java.lang.String x)
          Print a string following linefeed.
 void write(byte[] buf)
          È­ÀÏ ³»¿ëÀ» ¾ÏȣȭÇÏ¿© Àü¼ÛÇÑ´Ù.
 void write(int c)
          Write a single character.
 void writeHeader(int fileSize)
          È­ÀÏ´Ù¿î·Îµå Çì´õ¸¦ Àü¼ÛÇÑ´Ù.
 
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, println, println, println, println, println, println
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rep

public javax.servlet.http.HttpServletResponse rep

req

public javax.servlet.http.HttpServletRequest req
Constructor Detail

XecureFileOutputStream

public XecureFileOutputStream(XecureSession xecureSession,
                              XecureHttpServletRequest request,
                              XecureHttpServletResponse response,
                              javax.servlet.ServletOutputStream out)
                       throws java.io.IOException
XecureFileOutputStream constructor

Parameters:
xecureSession - ¾ÏÈ£ ¼¼¼Ç Á¤º¸
request - request of XecureServlet
response - response of XecureServlet
out - µðÆúÆ® ¼­ºí¸´ÀÇ response.getOutputStream()
Method Detail

close

public void close()
           throws java.io.IOException
close of ServletOutputStream

Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
flush of ServletOutputStream

Throws:
java.io.IOException

getFileName

public java.lang.String getFileName()
flush of ServletOutputStream


fileDownload

public void fileDownload()
                  throws java.io.IOException
ÆÄÀÏ ´Ù¿î·Îµå ÇÔ¼ö download the file requested with "filePath"parameter of FileDownload function of Client control.

Throws:
java.io.IOException

fileDownload

public void fileDownload(java.lang.String filename)
                  throws java.io.IOException
ÆÄÀÏ ´Ù¿î·Îµå ÇÔ¼ö

Parameters:
filename - download the file indicated by "filename" with no regads to request by FileDownload function of Client control
Throws:
java.io.IOException

fileDownload

public void fileDownload(java.lang.String filename,
                         java.lang.String dispName)
                  throws java.io.IOException
ÆÄÀÏ ´Ù¿î·Îµå ÇÔ¼ö

Parameters:
filename - ¼­¹ö¿¡ Á¸ÀçÇÏ´Â Àü¼ÛÇÒ È­Àϸí
dispName - Ŭ¶óÀÌ¾ðÆ®¿¡ Àü´ÞµÇ´Â È­Àϸí
Throws:
java.io.IOException
Since:
6.0 v120

write

public void write(int c)
           throws java.io.IOException
Write a single character.

Throws:
java.io.IOException

println

public void println()
             throws java.io.IOException
Print linefeed.

Throws:
java.io.IOException

println

public void println(java.lang.String x)
             throws java.io.IOException
Print a string following linefeed.

Throws:
java.io.IOException

print

public void print(java.lang.String s)
           throws java.io.IOException
Print string.

Throws:
java.io.IOException

writeHeader

public void writeHeader(int fileSize)
                 throws java.io.IOException
È­ÀÏ´Ù¿î·Îµå Çì´õ¸¦ Àü¼ÛÇÑ´Ù.
fileDownload()¸Þ¼Òµå°¡ ¾Æ´Ñ write(byte[])¸Þ¼Òµå¸¦ »ç¿ëÇÒ °æ¿ì
¹Ýµå½Ã ÀÌ ¸Þ¼Òµå¸¦ ¸ÕÀú È£ÃâÇϰí, write(byte[])¸¦ ÅëÇØ È­Àϳ»¿ëÀ» Àü¼ÛÇÑ´Ù.

Parameters:
fileSize - Àü¼ÛµÉ È­ÀÏÀÇ ¿øº» Å©±â
Throws:
java.io.IOException
Since:
6.0 v120
See Also:
write(byte[])

write

public void write(byte[] buf)
           throws java.io.IOException
È­ÀÏ ³»¿ëÀ» ¾ÏȣȭÇÏ¿© Àü¼ÛÇÑ´Ù.
Á¦Å¥¾îÀ¥ Ŭ¶óÀÌ¾ðÆ®°¡ ó¸®ÇÒ ¼ö ÀÖµµ·Ï writeHeader(int) ¸¦ ¸ÕÀú È£ÃâÇØ¾ß ÇÑ´Ù.
Å« È­ÀÏÀÇ °æ¿ì, Àû´çÇÑ Å©±â·Î ³ª´©¾î ¿©·¯¹ø È£ÃâÇÑ´Ù.

Parameters:
buf - Àü¼ÛµÉ µ¥ÀÌŸ
Throws:
java.io.IOException
Since:
6.0 v120
See Also:
writeHeader(int), OutputStream.write(byte[])