|
-
How to convert String to OutputStream?
Hi,
I have a Java class
class util
{
public boolean convert(OutputStream out, InputStream);
}
I don't have access to the Java code, but only to the JAR file.
When I was getting the input and output from a file, this was
okay. Now I get the input from a String, and the output should
also be to a String.
Because convert() takes only streams, I am unable to pass Strings
to it. I can create temp files to get around this, but that would
slow down the process.
Is there a way to convert a String or a StringBuffer to an OutputStream
and InputStream?
Thanks in advance,
Aruna
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks