|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BufferedJET2Writer
Protocol defining a buffered writer for JET. A buffered writer does not write directly to an output source. Instead, it writes to an internal buffer that may be later retrieved and modified.
This interface is not intended to be implemented by clients.
Method Summary | |
---|---|
java.lang.Object |
getAdapter(java.lang.Class adapterClass)
Adapt the writer to the given class. |
java.lang.String |
getContent()
Return the buffered content of the writer as a string. |
java.lang.String |
getContent(int offset,
int length)
Return a ranged of text within the buffered cotnent of the writer. |
int |
getContentLength()
Return the length of the buffered content. |
void |
replaceContent(int offset,
int length,
java.lang.String text)
Replace content in the buffer. |
void |
setContent(java.lang.String content)
Set the buffer content, removing any previously written content. |
Methods inherited from interface org.eclipse.jet.JET2Writer |
---|
addEventListener, addPosition, addPositionCategory, getDocument, getEventListeners, getLength, getParentWriter, getPositions, newNestedContentWriter, replace, write, write, write, write, write, write, write, write, write, write |
Method Detail |
---|
int getContentLength()
java.lang.String getContent()
java.lang.String getContent(int offset, int length)
offset
- the offset of the text to returnlength
- the length of the text to return
java.lang.IllegalArgumentException
- if offset or length do not fail within
the current contentsvoid replaceContent(int offset, int length, java.lang.String text)
offset
- the offset of the text to replacelength
- the length of the text to replacetext
- the replacement text
java.lang.IllegalArgumentException
- if offset or length do not fall within
the current contentsvoid setContent(java.lang.String content)
content
- java.lang.Object getAdapter(java.lang.Class adapterClass)
adapterClass
- the class to return
null
if adapterClass is not supported.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |