DOMConvertorpublic abstract class Convertor
extends java.lang.Object
| Constructor | Description |
|---|---|
Convertor() |
| Modifier and Type | Method | Description |
|---|---|---|
protected static org.openide.util.Lookup |
findContext(java.io.Reader r) |
get a context associated with the reader
r. |
protected static org.openide.util.Lookup |
findContext(java.io.Writer w) |
get a context associated with the writer
w. |
abstract java.lang.Object |
read(java.io.Reader r) |
Subclasses have to be able to read format implemented by
write(java.io.Writer, java.lang.Object). |
abstract void |
registerSaver(java.lang.Object inst,
Saver s) |
register
saver; convertor can provide own policy notifing
the saver about changes of setting object. |
abstract void |
unregisterSaver(java.lang.Object inst,
Saver s) |
unregister
saver |
abstract void |
write(java.io.Writer w,
java.lang.Object inst) |
Subclasses can implement own storing format.
|
public abstract void write(java.io.Writer w,
java.lang.Object inst)
throws java.io.IOException
w - stream into which inst is writteninst - the setting object to be writtenIOException - if the object cannot be writtenpublic abstract java.lang.Object read(java.io.Reader r)
throws java.io.IOException,
java.lang.ClassNotFoundException
write(java.io.Writer, java.lang.Object).r - stream containing stored objectIOException - if the object cannot be readjava.lang.ClassNotFoundException - if the object class cannot be resolvedpublic abstract void registerSaver(java.lang.Object inst,
Saver s)
saver; convertor can provide own policy notifing
the saver about changes of setting object. (e.g. register property
change listener)inst - setting objects - saver implementationpublic abstract void unregisterSaver(java.lang.Object inst,
Saver s)
saverinst - setting objects - saver implementationregisterSaver(java.lang.Object, org.netbeans.spi.settings.Saver)protected static org.openide.util.Lookup findContext(java.io.Reader r)
r. It can contain
various info like a file location of the read object etc.r - stream containing stored objectprotected static org.openide.util.Lookup findContext(java.io.Writer w)
w. It can contain
various info like a file location of the written object etc.w - stream into which inst is writtenBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.