Java BufferedReader Create getReader(final Object aReference, final String aResourceName)

Here you can find the source of getReader(final Object aReference, final String aResourceName)

Description

get Reader

License

Open Source License

Declaration

public static final BufferedReader getReader(final Object aReference, final String aResourceName) 

Method Source Code


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

import java.io.BufferedReader;

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

public class Main {
    public static final BufferedReader getReader(final Object aReference, final String aResourceName) {
        final InputStream resource = aReference.getClass().getResourceAsStream(aResourceName);
        final InputStreamReader reader = new InputStreamReader(resource);
        return new BufferedReader(reader);
    }//from  w w  w  .  jav  a 2 s. co m
}

Related

  1. getReader(File file)
  2. getReader(File inFile)
  3. getReader(File queryFile)
  4. getReader(final File inputFile)
  5. getReader(final InputStream is, final String enc)
  6. getReader(final String fileName)
  7. getReader(final String fileName)
  8. getReader(InputStream in)
  9. getReader(InputStream input)