Java BufferedInputStream Create getInputStreamFromString(String s)

Here you can find the source of getInputStreamFromString(String s)

Description

get Input Stream From String

License

Apache License

Declaration

public static InputStream getInputStreamFromString(String s) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.ByteArrayInputStream;

import java.io.InputStream;

public class Main {
    public static InputStream getInputStreamFromString(String s) {
        return new ByteArrayInputStream(s.getBytes());
    }/*  w ww.ja  v  a 2s  .co  m*/
}

Related

  1. getInputstreamForZipEntry(ZipFile zipFile, String uri)
  2. getInputStreamFromEncodedStr(String encodedDetails)
  3. getInputStreamFromString(String _string)
  4. getInputStreamFromString(String _string)
  5. getInputStreamFromString(String input)
  6. getStream(byte[] bytes)
  7. getStream(final File file)
  8. getStream(final String string, final String codePage)
  9. getStream(InputStream is)