Here you can find the source of newReader(String value)
public static BufferedReader newReader(String value)
//package com.java2s; /*// ww w . j av a2 s . c o m * Copyright (c) 2003-2009 Mark Logic Corporation. All rights reserved. * * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Mark Logic, Inc. */ import java.io.BufferedReader; import java.io.StringReader; public class Main { public static BufferedReader newReader(String value) { return (new BufferedReader(new StringReader(value))); } }