@Override + Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298215 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
194e21c283
commit
660f37a20a
|
@ -184,8 +184,9 @@ class CharBuffer {
|
|||
* Converts the contents of the buffer into a StringBuffer.
|
||||
* This method involves copying the new data once!
|
||||
*
|
||||
* @return
|
||||
* @return the contents of the character buffer as a String
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return new String(c, 0, length);
|
||||
}
|
||||
|
|
|
@ -65,6 +65,7 @@ class ExtendedBufferedReader extends BufferedReader {
|
|||
*
|
||||
* @return the next char or END_OF_STREAM if end of stream has been reached.
|
||||
*/
|
||||
@Override
|
||||
public int read() throws IOException {
|
||||
// initialize the lookahead
|
||||
if (lookaheadChar == UNDEFINED) {
|
||||
|
@ -103,6 +104,7 @@ class ExtendedBufferedReader extends BufferedReader {
|
|||
*
|
||||
* @return nof chars actually read or END_OF_STREAM
|
||||
*/
|
||||
@Override
|
||||
public int read(char[] buf, int off, int len) throws IOException {
|
||||
// do not claim if len == 0
|
||||
if (len == 0) {
|
||||
|
@ -145,6 +147,7 @@ class ExtendedBufferedReader extends BufferedReader {
|
|||
* including any line-termination characters, or null
|
||||
* if the end of the stream has been reached
|
||||
*/
|
||||
@Override
|
||||
public String readLine() throws IOException {
|
||||
|
||||
if (lookaheadChar == UNDEFINED) {
|
||||
|
@ -186,6 +189,7 @@ class ExtendedBufferedReader extends BufferedReader {
|
|||
/**
|
||||
* Unsupported
|
||||
*/
|
||||
@Override
|
||||
public long skip(long n) throws IllegalArgumentException, IOException {
|
||||
throw new UnsupportedOperationException("CSV has no reason to implement this");
|
||||
}
|
||||
|
@ -216,8 +220,10 @@ class ExtendedBufferedReader extends BufferedReader {
|
|||
}
|
||||
|
||||
/**
|
||||
* Unsupported
|
||||
* Unsupported.
|
||||
* @throws UnsupportedOperationException if invoked
|
||||
*/
|
||||
@Override
|
||||
public boolean markSupported() {
|
||||
throw new UnsupportedOperationException("CSV has no reason to implement this");
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ class UnicodeUnescapeReader extends Reader {
|
|||
this.reader = new PushbackReader(reader, sequence.length);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read(char[] cbuf, int off, int len) throws IOException {
|
||||
int count = 0;
|
||||
for (int i = 0; i < len; i++) {
|
||||
|
@ -75,6 +76,7 @@ class UnicodeUnescapeReader extends Reader {
|
|||
return ('0' <= c && c <= '9') || ('a' <= c && c <= 'f') || ('A' <= c && c <= 'F');
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
if (reader != null) {
|
||||
reader.close();
|
||||
|
|
Loading…
Reference in New Issue