public class Buffer<I,O> extends Object
XMLInputValue
and a XMLOutputValue
. It is thread-safe in the
sense that one thread can push and another thread can pull. The hasNext
and next
methods are blocking if a next item is not immediately available but the buffer is not closed
yet.Modifier and Type | Class and Description |
---|---|
protected static class |
Buffer.ItemBuffer<I> |
Constructor and Description |
---|
Buffer() |
Modifier and Type | Method and Description |
---|---|
XMLInputValue<I> |
asInput() |
XMLOutputValue<O> |
asOutput() |
void |
done()
Should be called by the input if all items have been pushed.
|
void |
error(TransformerException e)
Can be called by the input if no more items can be pushed due to an error.
|
public void done()
public void error(TransformerException e)
public XMLInputValue<I> asInput()
public XMLOutputValue<O> asOutput()
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.