@Test public void testNullCharBuffer() throws Exception { final ProxyReader proxy = new ProxyReaderImpl(new CustomNullReader(0)); proxy.read((CharBuffer)null); proxy.close(); }
@Test public void testNullCharArray() throws Exception { final ProxyReader proxy = new ProxyReaderImpl(new CustomNullReader(0)); proxy.read((char[])null); proxy.read(null, 0, 0); proxy.close(); }
public void close() throws IOException { closed = true; super.close(); }
public void close() throws IOException { closed = true; super.close(); }
@Override public void close() throws IOException { if (closed) { throw new IOException("Already closed !"); } else { closed = true; } super.close(); } }