Package org.eclipse.php.internal.core.phar

Source Code of org.eclipse.php.internal.core.phar.BZ2PharEntryBufferedOutputStream

/*******************************************************************************
* Copyright (c) 2009 Zhao and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*     Zhao - initial API and implementation
*******************************************************************************/
package org.eclipse.php.internal.core.phar;

import java.io.IOException;
import java.io.OutputStream;

import org.eclipse.php.internal.core.tar.CBZip2OutputStream;

public class BZ2PharEntryBufferedOutputStream extends
    PharEntryBufferedOutputStream {

  public BZ2PharEntryBufferedOutputStream(OutputStream innerStream)
      throws IOException {
    super(new CBZip2OutputStream(innerStream, 4));
  }

  @Override
  protected void beforeWrite() {
    super.beforeWrite();
    try {
      write(new byte[] { 104, 57 });
    } catch (IOException e) {
      e.printStackTrace();
    }
  }
}
TOP

Related Classes of org.eclipse.php.internal.core.phar.BZ2PharEntryBufferedOutputStream

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.