Esempio n. 1
0
 /**
  * Copies the ArchiveEntry to the Output stream
  *
  * @param in
  *            the stream to read the data from
  * @param out
  *            the stream to write the data to
  * @param entry
  *            the entry to write
  * @throws IOException
  *             if data cannot be read or written
  */
 private void copyStream(java.io.InputStream inJ, ArchiveOutputStream outJ,
                         ArchiveEntry entry) //throws IOException
 {
     outJ.putArchiveEntry(entry);
     IOUtils.copy(inJ, outJ);
     outJ.closeArchiveEntry();
 }
Esempio n. 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: void addToArchive(org.apache.commons.compress.archivers.ArchiveOutputStream stream) throws java.io.IOException
            internal virtual void AddToArchive(ArchiveOutputStream stream)
            {
                ArchiveEntry entry = CreateEntry(File, Root, stream);

                stream.putArchiveEntry(entry);
                Operation.accept(stream);
                stream.closeArchiveEntry();
            }