Author: sebb
Date: Mon Mar 30 18:13:02 2009
New Revision: 760084

URL: http://svn.apache.org/viewvc?rev=760084&view=rev
Log:
Don't expose close entry method
Remove unnecessary override methods

Modified:
    
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java

Modified: 
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java
URL: 
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java?rev=760084&r1=760083&r2=760084&view=diff
==============================================================================
--- 
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java
 (original)
+++ 
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java
 Mon Mar 30 18:13:02 2009
@@ -70,8 +70,6 @@
 
     private boolean entryEOF = false;
 
-    private final byte[] singleByteBuf = new byte[1];
-
     private final byte tmpbuf[] = new byte[4096];
 
     private long crc = 0;
@@ -129,7 +127,7 @@
      *             if an I/O error has occurred or if a CPIO file error has
      *             occurred
      */
-    public void closeEntry() throws IOException {
+    private void closeEntry() throws IOException {
         ensureOpen();
         while (read(this.tmpbuf, 0, this.tmpbuf.length) != -1) {
             // do nothing
@@ -208,20 +206,6 @@
     }
 
     /**
-     * Reads a byte of data. This method will block until enough input is
-     * available.
-     * 
-     * @return the byte read, or -1 if end of input is reached
-     * @throws IOException
-     *             if an I/O error has occurred or if a CPIO file error has
-     *             occurred
-     */
-    public int read() throws IOException {
-        return read(this.singleByteBuf, 0, 1) == -1 ? -1
-                : this.singleByteBuf[0] & 0xff;
-    }
-
-    /**
      * Reads from the current CPIO entry into an array of bytes. Blocks until
      * some input is available.
      * 


Reply via email to