preprocessorcharbuffer.java
来自「外国人写的c#语法解析器」· Java 代码 · 共 33 行
JAVA
33 行
package net.softgems.resourceparser.preprocessor;
import java.io.Reader;
import antlr.CharBuffer;
/**
* Extended character buffer class that takes initial input.
*/
public class PreprocessorCharBuffer extends CharBuffer
{
//------------------------------------------------------------------------------------------------
/**
* Extended constructor of the class.
*
* @param input The new input source.
* @param initalContent The string to be used as initial content for the queue.
*/
public PreprocessorCharBuffer(Reader input, String initialContent)
{
super(input);
if (initialContent != null)
for (int i = 0; i < initialContent.length(); i++)
queue.append(initialContent.charAt(i));
}
//------------------------------------------------------------------------------------------------
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?