Code example for CharBuffer

Methods: clear

0
	} 
 
	@Before 
	public void setUp() 
	{ 
		buffer.clear();
	} 
 
	@After 
	public void tearDown() 
	{ 
		closeQuietly((Closeable)reader);
		closeQuietly((Closeable)writer);
	} 
 
	private Reader getReader(String input) throws IOException
	{ 
		InputStream inputStream = new ByteArrayInputStream(input.getBytes(iso_8859_1));
		reader = native2ASCIIEncoding.getTextReader(inputStream);
		return reader;
	}