public interface NeedsChannelizing
AstObject requires object-specific
preparation before writing to and/or after reading from a
Channel. Any object implementing this interface
will have the channelize method called on it before
it is written to a sink by a Channel, and the unChannelize
method called on it after it is read from a source by a Channel.
No other uk.ac.starlink.ast methods will be called on it
between calls to channelize and unChannelize,
so channelize may leave the object in an unusable
state, as long as unChannelize undoes this
situation.| Modifier and Type | Method and Description |
|---|---|
void |
channelize()
Does object-specific preparation for output to a
Channel. |
void |
unChannelize()
Reverses the effects of
channelize. |
void channelize()
throws Exception
Channel.
This method is called by the writing methods of a
Channel prior to doing the actual write.
The actions of this method should be reversed by the
unChannelize method. If that method creates a new
AST object (i.e. the pointer
field gets set to a new value) then
this method should call annul just before returning.
Exception - the implementation may cause any exception
to be thrown. This will scupper the write.void unChannelize()
throws Exception
channelize.
This method is called by the reading methods of a Channel
after doing the actual read.
It may also be called by the writing methods of a
Channel after doing the actual write to undo possible destructive
effects of the channelize call
(it is implementation-specific whether this will actually happen).Exception - the implementation may cause any exception
to be thrown. This will scupper the read.Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.