当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
MutableChars - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.format.parser.chars
Class MutableChars
java.lang.Object
org.jboss.portal.format.parser.chars.MutableChars
- All Implemented Interfaces:
- Chars
- public class MutableChars
- extends java.lang.Object
- implements Chars
- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
Field Summary |
protected char[] |
chars
|
protected int |
index
|
protected java.io.Writer |
writer
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
index
protected int index
chars
protected char[] chars
writer
protected java.io.Writer writer
MutableChars
public MutableChars(int length)
MutableChars
public MutableChars()
MutableChars
public MutableChars(char[] chars)
MutableChars
public MutableChars(java.lang.String s)
increase
private void increase()
append
public MutableChars append(java.lang.String s)
append
public MutableChars append(char[] cbuf,
int off,
int len)
append
public MutableChars append(char c)
reset
public void reset()
appendTo
public void appendTo(java.io.Writer writer)
throws java.io.IOException
- Description copied from interface:
Chars
- Append the chars to a Writer.
- Specified by:
appendTo
in interface Chars
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Description copied from interface:
Chars
- Returns a String made of the chars.
- Specified by:
toString
in interface Chars
getReader
public java.io.Reader getReader()
- Description copied from interface:
Chars
- Get a Reader for the chars.
- Specified by:
getReader
in interface Chars
length
public int length()
- Description copied from interface:
Chars
- Returns how many chars there are.
- Specified by:
length
in interface Chars
getWriter
public java.io.Writer getWriter()
chars
public char[] chars()