/** * Implements SourceStream#endOfStream(). Delegates to the wrapped * SourceStream. * * @return true if the stream is finished, false otherwise */ public boolean endOfStream() { return stream.endOfStream(); }
/** * Implements {@link SourceStream#endOfStream()}. Delegates to the wrapped * <tt>SourceStream</tt>. * * @return <tt>true</tt> if the wrapped <tt>SourceStream</tt> has reached * the end the content it makes available */ public boolean endOfStream() { return stream.endOfStream(); }
/** * Implements {@link SourceStream#endOfStream()}. Delegates to the input * <tt>SourceStreams</tt> of this instance. * * @return <tt>true</tt> if all input <tt>SourceStream</tt>s of this * instance have reached the end of their content; <tt>false</tt>, otherwise */ @Override public boolean endOfStream() { synchronized (inStreamsSyncRoot) { if (inStreams != null) { for (InStreamDesc inStreamDesc : inStreams) { if (!inStreamDesc.getInStream().endOfStream()) return false; } } } return true; }