class UnownedOutputStream extends FilterOutputStream {

  @Override
  public void close() throws IOException {
    throw new UnsupportedOperationException(
        "Caller does not own the underlying output stream " + " and should not call close().");
  }

  public  UnownedOutputStream(OutputStream delegate);

}