Java BufferedInputStream Create getStream(String string, String codePage)

Here you can find the source of getStream(String string, String codePage)

Description

get Stream

License

Apache License

Declaration

public static InputStream getStream(String string, String codePage) throws UnsupportedEncodingException 

Method Source Code

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

import java.io.ByteArrayInputStream;

import java.io.InputStream;

import java.io.UnsupportedEncodingException;

public class Main {
    public static InputStream getStream(String string, String codePage) throws UnsupportedEncodingException {
        return new ByteArrayInputStream(string.getBytes(codePage));
    }//from ww w.j a v  a2  s.co m
}

Related

  1. getStream(final String string, final String codePage)
  2. getStream(InputStream is)
  3. getStream(String name)
  4. getStream(String resource)
  5. getStream(String string)
  6. getStreamFromString(String text)
  7. inputStreamBuffered(final File file)
  8. toBufferedInputStream(InputStream inputStream)
  9. toBufferedInputStream(InputStream stream)