xecure.file
Class XecureFilePrintWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.PrintWriter
          extended byxecure.file.XecureFilePrintWriter

public class XecureFilePrintWriter
extends java.io.PrintWriter

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


Field Summary
 javax.servlet.http.HttpServletResponse rep
           
 javax.servlet.http.HttpServletRequest req
           
 
Constructor Summary
XecureFilePrintWriter(XecureSession xecureSession, XecureHttpServletRequest request, XecureHttpServletResponse response, java.io.PrintWriter out)
          XecureFilePrintWriter 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(int c)
          Write a single character.
 void write(java.lang.String buf)
          È­ÀÏ ³»¿ëÀ» ¾ÏȣȭÇÏ¿© Àü¼ÛÇÑ´Ù.
 void writeHeader(int fileSize)
          È­ÀÏ´Ù¿î·Îµå Çì´õ¸¦ Àü¼ÛÇÑ´Ù.
 
Methods inherited from class java.io.PrintWriter
checkError, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, write, write, 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

XecureFilePrintWriter

public XecureFilePrintWriter(XecureSession xecureSession,
                             XecureHttpServletRequest request,
                             XecureHttpServletResponse response,
                             java.io.PrintWriter out)
                      throws java.io.IOException
XecureFilePrintWriter constructor

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

close

public void close()
close of ServletOutputStream


flush

public void flush()
flush of ServletOutputStream


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)
Write a single character.


println

public void println()
Print linefeed.


println

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


print

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


writeHeader

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

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

write

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

Parameters:
buf - Àü¼ÛµÉ µ¥ÀÌŸ (hexaÀÎÄÚµù)
Since:
6.0 v120
See Also:
writeHeader(int), Writer.write(java.lang.String)