Package org.exoplatform.commons.utils
Class ExoExpression
- java.lang.Object
-
- org.exoplatform.commons.utils.ExoExpression
-
@Deprecated public class ExoExpression extends Object
Deprecated.Created by The eXo Platform SAS Author : Chung Nguyen nguyenchung136@yahoo.com Feb 8, 2006
-
-
Constructor Summary
Constructors Constructor Description ExoExpression()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ZipOutputStreamaddToArchive(ZipOutputStream zipOutput, InputStream input, String entryName1)Deprecated.StringgetDirOut()Deprecated.static StringgetEntry()Deprecated.FilegetFileToByte(ByteArrayInputStream bais)Deprecated.Create File with ByteArrInputStrem Zipstatic StringgetOutFileName()Deprecated.static StringgetPathOut()Deprecated.ByteArrayInputStreamgetZipByteToFolder(File input, boolean containParent)Deprecated.Mothed accept Zip one Folder and Return ByteArrayInputStream of it after ZipByteArrayInputStreamgetZipOutputStream(ByteArrayInputStream bais)Deprecated.Method create File Zip withstatic voidsetEntry(String entry)Deprecated.static voidsetOutFileName(String fileName)Deprecated.static voidsetPathOut(String dir)Deprecated.ByteArrayInputStreamZipExcute(ByteArrayInputStream bytesStream)Deprecated.Method accept Zip one ByteArrayInputStreamByteArrayInputStreamZipExcute(File file)Deprecated.Method accept Zip one FileByteArrayInputStreamZipExcute(InputStream is)Deprecated.Method accept Zip one InputStreamByteArrayInputStreamZipExcute(String url)Deprecated.Method accept download File with URL and Zip it
-
-
-
Field Detail
-
EOF
protected static final int EOF
Deprecated.- See Also:
- Constant Field Values
-
BUFFER
protected static final int BUFFER
Deprecated.- See Also:
- Constant Field Values
-
entryName
public static String entryName
Deprecated.
-
outFileName
public static String outFileName
Deprecated.
-
pathOut
public static String pathOut
Deprecated.
-
-
Method Detail
-
ZipExcute
public ByteArrayInputStream ZipExcute(InputStream is) throws Exception
Deprecated.Method accept Zip one InputStream- Parameters:
is- : InputStream- Returns:
- : ByteArrayInputStream
- Throws:
Exception
-
ZipExcute
public ByteArrayInputStream ZipExcute(File file) throws Exception
Deprecated.Method accept Zip one File- Parameters:
file- : File input- Returns:
- : ByteArrayInputStream
- Throws:
Exception- : FileNotFoundException
-
ZipExcute
public ByteArrayInputStream ZipExcute(ByteArrayInputStream bytesStream) throws Exception
Deprecated.Method accept Zip one ByteArrayInputStream- Parameters:
bytesStream-- Returns:
- ByteArrayInputStream
- Throws:
Exception
-
ZipExcute
public ByteArrayInputStream ZipExcute(String url) throws Exception
Deprecated.Method accept download File with URL and Zip it- Parameters:
url-- Returns:
- : ByteArrayInputStream
- Throws:
Exception
-
getZipOutputStream
public ByteArrayInputStream getZipOutputStream(ByteArrayInputStream bais) throws Exception
Deprecated.Method create File Zip with- Throws:
Exception
-
getFileToByte
public File getFileToByte(ByteArrayInputStream bais) throws Exception
Deprecated.Create File with ByteArrInputStrem Zip- Parameters:
bais-- Returns:
- File Zip
- Throws:
Exception
-
setEntry
public static void setEntry(String entry)
Deprecated.
-
getEntry
public static String getEntry()
Deprecated.
-
setOutFileName
public static void setOutFileName(String fileName)
Deprecated.- Parameters:
fileName- : Name of File Zip out
-
getOutFileName
public static String getOutFileName()
Deprecated.
-
setPathOut
public static void setPathOut(String dir)
Deprecated.- Parameters:
dir- : Directory Out
-
getPathOut
public static String getPathOut()
Deprecated.
-
getDirOut
public String getDirOut()
Deprecated.- Returns:
- Dir of Zip File
-
getZipByteToFolder
public ByteArrayInputStream getZipByteToFolder(File input, boolean containParent) throws Exception
Deprecated.Mothed accept Zip one Folder and Return ByteArrayInputStream of it after Zip- Parameters:
input- : File Folder inputcontainParent- = true Folder is Parent- Returns:
- ByteArrayInputStream after Zip
- Throws:
Exception
-
addToArchive
public ZipOutputStream addToArchive(ZipOutputStream zipOutput, InputStream input, String entryName1) throws Exception
Deprecated.- Throws:
Exception
-
-