⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 antlrinputstream.java

📁 antlr最新版本V3源代码
💻 JAVA
字号:
package org.antlr.runtime;import java.io.*;/** A kind of ReaderStream that pulls from an InputStream. *  Useful for reading from stdin and specifying file encodings etc...  */public class ANTLRInputStream extends ANTLRReaderStream {	public ANTLRInputStream() {	}	public ANTLRInputStream(InputStream input) throws IOException {		this(input, null);	}	public ANTLRInputStream(InputStream input, int size) throws IOException {		this(input, size, null);	}	public ANTLRInputStream(InputStream input, String encoding) throws IOException {		this(input, INITIAL_BUFFER_SIZE, encoding);	}	public ANTLRInputStream(InputStream input, int size, String encoding) throws IOException {		this(input, size, READ_BUFFER_SIZE, encoding);	}	public ANTLRInputStream(InputStream input,							int size,							int readBufferSize,							String encoding)		throws IOException	{		InputStreamReader isr;		if ( encoding!=null ) {			isr = new InputStreamReader(input, encoding);		}		else {			isr = new InputStreamReader(input);		}		load(isr, size, readBufferSize);	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -