|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectau.com.zip.cs.ContextAdaptor
public abstract class ContextAdaptor
A partial implementation of a context for reporting errors and warnings.
| Constructor Summary | |
|---|---|
ContextAdaptor(Context p)
Construct a new Context with the specified parent. |
|
| Method Summary | |
|---|---|
Context |
getParentContext()
Return the parent context of this context. |
int |
print(Writer w)
Transcribe this FileContext to a Writer. |
void |
printMsg(Writer w,
String msg)
Print a message with the current context to a Writer. |
void |
setParentContext(Context p)
Set the parent of this context. |
String |
toString()
Transcribe this context to a String. |
String |
toStringOnly()
Transcribe this context, but not its ancestors, to a String. |
void |
whinge(String complaint)
Print a message with the current context to the system error stream via Util.errWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface au.com.zip.cs.Context |
|---|
printOnly |
| Constructor Detail |
|---|
public ContextAdaptor(Context p)
Context with the specified parent.
p - the parent Context, if any| Method Detail |
|---|
public final Context getParentContext()
getParentContext in interface Contextpublic final void setParentContext(Context p)
setParentContext in interface Contextp - the new parentpublic final String toString()
toString in interface ContexttoString in class Objectpublic String toStringOnly()
toStringOnly in interface Context
public final int print(Writer w)
throws IOException
Writer.
print in interface Contextw - the Writer
IOException
public final void printMsg(Writer w,
String msg)
throws IOException
Writer.
printMsg in interface Contextw - the Writermsg - the message
IOException
public final void whinge(String complaint)
throws IOException
Util.errWriter.
whinge in interface Contextcomplaint - the message
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||