Skip to content

Instantly share code, notes, and snippets.

@yujuwon
Created May 23, 2013 08:29
Show Gist options
  • Select an option

  • Save yujuwon/5633512 to your computer and use it in GitHub Desktop.

Select an option

Save yujuwon/5633512 to your computer and use it in GitHub Desktop.
public class StringToInputStream{
public static void main(String[] args){
String str = "test";
InputStream is = new ByteArrayInputStream(str.getBytes());
.....
.....
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment