Java InputStream Read getInputStreamReaderAsResource(Class clazz, String fileName)

Here you can find the source of getInputStreamReaderAsResource(Class clazz, String fileName)

Description

get Input Stream Reader As Resource

License

Open Source License

Declaration

public static InputStreamReader getInputStreamReaderAsResource(Class<?> clazz, String fileName) 

Method Source Code

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

import java.io.InputStream;
import java.io.InputStreamReader;

public class Main {
    public static InputStreamReader getInputStreamReaderAsResource(Class<?> clazz, String fileName) {
        return new InputStreamReader(getInputStreamAsResource(clazz, fileName));
    }//from w  w w . jav  a2 s . co  m

    public static InputStream getInputStreamAsResource(Class<?> clazz, String fileName) {
        InputStream stream = clazz.getResourceAsStream(fileName);
        return stream;
    }
}

Related

  1. getInputStreamFromFile(File pFile)
  2. getInputStreamFromFile(final File file)
  3. getInputStreamFromZip(ZipInputStream zis, String filename)
  4. getInputStreamLength(InputStream in)
  5. getInputStreamReader(InputStream in, String charset)
  6. getInputStreamString(final InputStream in)
  7. getInputStreamToBytes(InputStream is)
  8. inputStreamReadBytesUntil(int endInd, InputStream is, byte[] buf, int off)
  9. inputStreamToList(InputStream stream)