|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.commons.utils.ExoExpression
public class ExoExpression
Created by The eXo Platform SAS Author : Chung Nguyen nguyenchung136@yahoo.com Feb 8, 2006
| Field Summary | |
|---|---|
protected static int |
BUFFER
|
static java.lang.String |
entryName
|
protected static int |
EOF
|
static java.lang.String |
outFileName
|
static java.lang.String |
pathOut
|
| Constructor Summary | |
|---|---|
ExoExpression()
|
|
| Method Summary | |
|---|---|
java.util.zip.ZipOutputStream |
addToArchive(java.util.zip.ZipOutputStream zipOutput,
java.io.InputStream input,
java.lang.String entryName1)
|
java.lang.String |
getDirOut()
|
static java.lang.String |
getEntry()
|
java.io.File |
getFileToByte(java.io.ByteArrayInputStream bais)
Create File with ByteArrInputStrem Zip |
static java.lang.String |
getOutFileName()
|
static java.lang.String |
getPathOut()
|
java.io.ByteArrayInputStream |
getZipByteToFolder(java.io.File input,
boolean containParent)
Mothed accept Zip one Folder and Return ByteArrayInputStream of it after Zip |
java.io.ByteArrayInputStream |
getZipOutputStream(java.io.ByteArrayInputStream bais)
Method create File Zip with |
static void |
setEntry(java.lang.String entry)
|
static void |
setOutFileName(java.lang.String fileName)
|
static void |
setPathOut(java.lang.String dir)
|
java.io.ByteArrayInputStream |
ZipExcute(java.io.ByteArrayInputStream bytesStream)
Method accept Zip one ByteArrayInputStream |
java.io.ByteArrayInputStream |
ZipExcute(java.io.File file)
Method accept Zip one File |
java.io.ByteArrayInputStream |
ZipExcute(java.io.InputStream is)
Method accept Zip one InputStream |
java.io.ByteArrayInputStream |
ZipExcute(java.lang.String url)
Method accept download File with URL and Zip it |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int EOF
protected static final int BUFFER
public static java.lang.String entryName
public static java.lang.String outFileName
public static java.lang.String pathOut
| Constructor Detail |
|---|
public ExoExpression()
| Method Detail |
|---|
public java.io.ByteArrayInputStream ZipExcute(java.io.InputStream is)
throws java.lang.Exception
is - : InputStream
java.lang.Exception
public java.io.ByteArrayInputStream ZipExcute(java.io.File file)
throws java.lang.Exception
file - : File input
java.lang.Exception - : FileNotFoundException
public java.io.ByteArrayInputStream ZipExcute(java.io.ByteArrayInputStream bytesStream)
throws java.lang.Exception
bytesStream -
java.lang.Exception
public java.io.ByteArrayInputStream ZipExcute(java.lang.String url)
throws java.lang.Exception
url -
java.lang.Exception
public java.io.ByteArrayInputStream getZipOutputStream(java.io.ByteArrayInputStream bais)
throws java.lang.Exception
java.lang.Exception
public java.io.File getFileToByte(java.io.ByteArrayInputStream bais)
throws java.lang.Exception
bais -
java.lang.Exceptionpublic static void setEntry(java.lang.String entry)
public static java.lang.String getEntry()
public static void setOutFileName(java.lang.String fileName)
fileName - : Name of File Zip outpublic static java.lang.String getOutFileName()
public static void setPathOut(java.lang.String dir)
dir - : Directory Outpublic static java.lang.String getPathOut()
public java.lang.String getDirOut()
public java.io.ByteArrayInputStream getZipByteToFolder(java.io.File input,
boolean containParent)
throws java.lang.Exception
input - : File Folder inputcontainParent - = true Folder is Parent
java.lang.Exception
public java.util.zip.ZipOutputStream addToArchive(java.util.zip.ZipOutputStream zipOutput,
java.io.InputStream input,
java.lang.String entryName1)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||