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
  • Field Details

    • EOF

      protected static final int EOF
      Deprecated.
      See Also:
    • BUFFER

      protected static final int BUFFER
      Deprecated.
      See Also:
    • entryName

      public static String entryName
      Deprecated.
    • outFileName

      public static String outFileName
      Deprecated.
    • pathOut

      public static String pathOut
      Deprecated.
  • Constructor Details

    • ExoExpression

      public ExoExpression()
      Deprecated.
  • Method Details

    • 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 input
      containParent - = 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