Monday, 25 April 2011

Turn String into InputStream

import java.io.*;

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

No comments:

Post a Comment