<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=Replacement_for_StringBufferInputStream</id>
	<title>Replacement for StringBufferInputStream - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=Replacement_for_StringBufferInputStream"/>
	<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=Replacement_for_StringBufferInputStream&amp;action=history"/>
	<updated>2026-05-13T10:33:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0-beta</generator>
	<entry>
		<id>https://www.theeggeadventure.com/wikimedia/index.php?title=Replacement_for_StringBufferInputStream&amp;diff=2240&amp;oldid=prev</id>
		<title>Brianegge: Created page with &#039;[http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4217782 Bug ID: 4217782] States that StringBufferInputStream is depreciated and should be replaced with StringReader, but Stri…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=Replacement_for_StringBufferInputStream&amp;diff=2240&amp;oldid=prev"/>
		<updated>2009-10-09T02:38:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;[http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4217782 Bug ID: 4217782] States that StringBufferInputStream is depreciated and should be replaced with StringReader, but Stri…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4217782 Bug ID: 4217782] States that StringBufferInputStream is depreciated and should be replaced with StringReader, but StringReader is not an input stream.  I frequently need to turn a String into a stream for testing, so I created this class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;geshi lang=&amp;quot;java5&amp;quot;&amp;gt;&lt;br /&gt;
class StringReaderInputStream extends InputStream {&lt;br /&gt;
&lt;br /&gt;
    private final StringReader reader;&lt;br /&gt;
&lt;br /&gt;
    public StringReaderInputStream(String s) {&lt;br /&gt;
        reader = new StringReader(s);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public int read() throws IOException {&lt;br /&gt;
        return reader.read();&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Java]]&lt;/div&gt;</summary>
		<author><name>Brianegge</name></author>
	</entry>
</feed>