diff options
| author | low012 <low012@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2011-03-08 01:51:51 +0000 |
|---|---|---|
| committer | low012 <low012@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2011-03-08 01:51:51 +0000 |
| commit | 3b40b982564c86c4d3728d3415a970deb2c0d1a8 (patch) | |
| tree | ca79ea205e255a1e83a994b512d511b4b9b893ed /source/org | |
| parent | 2af8e337737b4e7cbc4b6394ef6a71f869894885 (diff) | |
*) set SVN properties
*) minor changes
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7567 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'source/org')
| -rw-r--r-- | source/org/apache/tools/tar/TarEntry.java | 2 | ||||
| -rw-r--r-- | source/org/apache/tools/tar/TarInputStream.java | 8 | ||||
| -rw-r--r-- | source/org/apache/tools/tar/TarOutputStream.java | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/source/org/apache/tools/tar/TarEntry.java b/source/org/apache/tools/tar/TarEntry.java index 42fcb9f43..20c781a02 100644 --- a/source/org/apache/tools/tar/TarEntry.java +++ b/source/org/apache/tools/tar/TarEntry.java @@ -282,6 +282,7 @@ public class TarEntry implements TarConstants { * @param it Entry to be checked for equality. * @return True if the entries are equal. */ + @Override public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; @@ -295,6 +296,7 @@ public class TarEntry implements TarConstants { * * @return the entry hashcode */ + @Override public int hashCode() { return getName().hashCode(); } diff --git a/source/org/apache/tools/tar/TarInputStream.java b/source/org/apache/tools/tar/TarInputStream.java index 7be17cefd..74fe5e88b 100644 --- a/source/org/apache/tools/tar/TarInputStream.java +++ b/source/org/apache/tools/tar/TarInputStream.java @@ -110,6 +110,7 @@ public class TarInputStream extends FilterInputStream { * Closes this stream. Calls the TarBuffer's close() method. * @throws IOException on error */ + @Override public void close() throws IOException { this.buffer.close(); } @@ -135,6 +136,7 @@ public class TarInputStream extends FilterInputStream { * @return The number of available bytes for the current entry. * @throws IOException for signature */ + @Override public int available() throws IOException { if (this.entrySize - this.entryOffset > Integer.MAX_VALUE) { return Integer.MAX_VALUE; @@ -152,6 +154,7 @@ public class TarInputStream extends FilterInputStream { * @return the number actually skipped * @throws IOException on error */ + @Override public long skip(long numToSkip) throws IOException { // REVIEW // This is horribly inefficient, but it ensures that we @@ -175,6 +178,7 @@ public class TarInputStream extends FilterInputStream { * * @return False. */ + @Override public boolean markSupported() { return false; } @@ -184,12 +188,14 @@ public class TarInputStream extends FilterInputStream { * * @param markLimit The limit to mark. */ + @Override public synchronized void mark(int markLimit) { } /** * Since we do not support marking just yet, we do nothing. */ + @Override public synchronized void reset() { } @@ -293,6 +299,7 @@ public class TarInputStream extends FilterInputStream { * @return The byte read, or -1 at EOF. * @throws IOException on error */ + @Override public int read() throws IOException { int num = this.read(this.oneBuf, 0, 1); return num == -1 ? -1 : ((int) this.oneBuf[0]) & BYTE_MASK; @@ -311,6 +318,7 @@ public class TarInputStream extends FilterInputStream { * @return The number of bytes read, or -1 at EOF. * @throws IOException on error */ + @Override public int read(byte[] buf, int offset, int numToRead) throws IOException { int totalRead = 0; diff --git a/source/org/apache/tools/tar/TarOutputStream.java b/source/org/apache/tools/tar/TarOutputStream.java index 852bee2a8..75f9c53d3 100644 --- a/source/org/apache/tools/tar/TarOutputStream.java +++ b/source/org/apache/tools/tar/TarOutputStream.java @@ -140,6 +140,7 @@ public class TarOutputStream extends FilterOutputStream { * TarBuffer's close(). * @throws IOException on error */ + @Override public void close() throws IOException { if (!closed) { this.finish(); @@ -242,6 +243,7 @@ public class TarOutputStream extends FilterOutputStream { * @param b The byte written. * @throws IOException on error */ + @Override public void write(int b) throws IOException { this.oneBuf[0] = (byte) b; @@ -256,6 +258,7 @@ public class TarOutputStream extends FilterOutputStream { * @param wBuf The buffer to write to the archive. * @throws IOException on error */ + @Override public void write(byte[] wBuf) throws IOException { this.write(wBuf, 0, wBuf.length); } @@ -274,6 +277,7 @@ public class TarOutputStream extends FilterOutputStream { * @param numToWrite The number of bytes to write. * @throws IOException on error */ + @Override public void write(byte[] wBuf, int wOffset, int numToWrite) throws IOException { if ((this.currBytes + numToWrite) > this.currSize) { throw new IOException("request to write '" + numToWrite |
