Here you can find the source of getBufferedReader(final InputStream inputstream)
Parameter | Description |
---|---|
inputstream | a parameter |
Parameter | Description |
---|---|
IOException | an exception |
public static BufferedReader getBufferedReader(final InputStream inputstream) throws IOException
//package com.java2s; /*/*from w w w . j ava2 s . co m*/ * Copyright (c) 2003 Stephan D. Cote' - All rights reserved. * * This program and the accompanying materials are made available under the * terms of the MIT License which accompanies this distribution, and is * available at http://creativecommons.org/licenses/MIT/ * * Contributors: * Stephan D. Cote * - Initial concept and implementation */ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class Main { private static final String fileIOEncoding = "8859_1"; /** * Method getBufferedReader * * @param inputstream * * @return TODO: Finish documentation * * @throws IOException */ public static BufferedReader getBufferedReader(final InputStream inputstream) throws IOException { return new BufferedReader(new InputStreamReader(inputstream, fileIOEncoding)); } }