Somebody use this solution for parser xml ^^, have a fun !!!
String input = "Input Stream ";
try {
ByteArrayInputStream ba = new ByteArrayInputStream(input.getBytes());
// TODO Codes //
// ...
// ...
//
} catch (Exception e) {
e.printStackTrace();
}
Wednesday, May 27, 2009
Convert an input String to InputStream
We can use java.io.ByteArrayInputStream and use string.getBytes() like this
Labels:
code,
inputstream,
java
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment