Removed an unused constructor in ExtendedBufferedReader

git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1199761 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Bourg 2011-11-09 13:56:16 +00:00
parent 5f1aa66714
commit e6e80741d8
2 changed files with 10 additions and 35 deletions

View File

@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.csv;
import java.io.BufferedReader;
@ -32,28 +33,21 @@ import java.io.Reader;
*/
class ExtendedBufferedReader extends BufferedReader {
/**
* the end of stream symbol
*/
/** The end of stream symbol */
public static final int END_OF_STREAM = -1;
/**
* undefined state for the lookahead char
*/
/** Undefined state for the lookahead char */
public static final int UNDEFINED = -2;
/**
* the lookahead chars
*/
/** The lookahead chars */
private int lookaheadChar = UNDEFINED;
/**
* the last char returned
*/
/** The last char returned */
private int lastChar = UNDEFINED;
/**
* the line counter
*/
/** The line counter */
private int lineCounter = 0;
private CharBuffer line = new CharBuffer();
/**
@ -66,16 +60,6 @@ class ExtendedBufferedReader extends BufferedReader {
*/
}
/**
* Create extended buffered reader using the given buffer-size
*/
public ExtendedBufferedReader(Reader r, int bufSize) {
super(r, bufSize);
/* note uh: do not fetch the first char here,
* because this might block the method!
*/
}
/**
* Reads the next char from the input stream.
*

View File

@ -26,15 +26,6 @@ import junit.framework.TestCase;
*/
public class ExtendedBufferedReaderTest extends TestCase {
// ======================================================
// the test cases
// ======================================================
public void testConstructors() {
ExtendedBufferedReader br = new ExtendedBufferedReader(new StringReader(""));
br = new ExtendedBufferedReader(new StringReader(""), 10);
}
public void testReadLookahead1() throws Exception {
assertEquals(ExtendedBufferedReader.END_OF_STREAM, getEBR("").read());