Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2012 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3263574 to your computer and use it in GitHub Desktop.
Save anonymous/3263574 to your computer and use it in GitHub Desktop.
Listening whilst reading
// can't use a builder
AtomContainer container = new AtomContainer();
container.addListener(new IChemObjectListener() {
@Override
public void stateChanged(IChemObjectChangeEvent iChemObjectChangeEvent) {
// detect bond changed
}
});
container = reader.read(container);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment