StringBufferInputStream (Java Platform SE 7 ) (original) (raw)


Deprecated.
This class does not properly convert characters into bytes. As of JDK 1.1, the preferred way to create a stream from a string is via the StringReader class.

@Deprecated
public class StringBufferInputStream
extends InputStream
This class allows an application to create an input stream in which the bytes read are supplied by the contents of a string. Applications can also read bytes from a byte array by using aByteArrayInputStream.
Only the low eight bits of each character in the string are used by this class.
Since:
JDK1.0
See Also:
ByteArrayInputStream, StringReader

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.