Monday, April 25, 2011

Turn String into InputStream

import java.io.*;

public InputStream stringToStream(String s) {
   return new ByteArrayInputStream(s.getBytes());
}

No comments:

Post a Comment

Chitika