Java BufferedInputStream Create getInputStreamFromEncodedStr(String encodedDetails)

Here you can find the source of getInputStreamFromEncodedStr(String encodedDetails)

Description

get Input Stream From Encoded Str

License

Open Source License

Declaration

public static InputStream getInputStreamFromEncodedStr(String encodedDetails) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;

import sun.misc.BASE64Decoder;

public class Main {
    public static InputStream getInputStreamFromEncodedStr(String encodedDetails) throws IOException {
        BASE64Decoder decoder = new BASE64Decoder();
        byte b[] = decoder.decodeBuffer(encodedDetails);
        return new ByteArrayInputStream(b);

    }//ww w. j a va2s .c  o  m
}

Related

  1. getInputStream(InputStream in)
  2. getInputStream(String path)
  3. getInputStream(String resource)
  4. getInputStream(String string)
  5. getInputstreamForZipEntry(ZipFile zipFile, String uri)
  6. getInputStreamFromString(String _string)
  7. getInputStreamFromString(String _string)
  8. getInputStreamFromString(String input)
  9. getInputStreamFromString(String s)