/** * Implements SourceStream#endOfStream(). Delegates to the wrapped * SourceStream. * * @return true if the stream is finished, false otherwise */ public boolean endOfStream() { return stream.endOfStream(); }
/** * Implements SourceStream#getContentDescriptor(). Delegates to the wrapped * SourceStream. * * @return the <tt>ContentDescriptor</tt> of the stream */ public ContentDescriptor getContentDescriptor() { return stream.getContentDescriptor(); }
/** * Implements SourceStream#getContentLength(). Delegates to the wrapped * SourceStream. * * @return content length */ public long getContentLength() { return stream.getContentLength(); }
/** * Implements Controls#getControl(String). Delegates to the wrapped * SourceStream. * * @param controlType a <tt>String</tt> value naming the type of the control * of this instance to be retrieved * @return an <tt>Object</tt> which represents the control of this instance * with the specified type */ public Object getControl(String controlType) { return stream.getControl(controlType); }
/** * Implements Controls#getControls(). Delegates to the wrapped SourceStream. * * @return array of JMF <tt>Control</tt> objects */ public Object[] getControls() { return stream.getControls(); }
/** * Implements {@link Controls#getControl(String)}. Delegates to the wrapped * <tt>SourceStream</tt>. * * @param controlType a <tt>String</tt> value which specifies the type of * the control to be retrieved * @return an <tt>Object</tt> which represents the control of the wrapped * <tt>SourceStream</tt> of the specified type if such a control is * available; otherwise, <tt>null</tt> */ public Object getControl(String controlType) { return stream.getControl(controlType); }
/** * Implements {@link Controls#getControls()}. Delegates to the wrapped * <tt>SourceStream</tt>. * * @return an array of <tt>Object</tt>s which represent the controls * available for the wrapped <tt>SourceStream</tt> */ public Object[] getControls() { return stream.getControls(); } }
/** * Implements {@link SourceStream#getContentLength()}. Delegates to the * wrapped <tt>SourceStream</tt>. * * @return the length of the content made available by the wrapped * <tt>SourceStream</tt> */ public long getContentLength() { return stream.getContentLength(); }
/** * 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(); }
inStreamDesc.getInStream().getControl(bufferControlType);
/** * Implements {@link SourceStream#getContentDescriptor()}. Delegates to the * wrapped <tt>SourceStream</tt>. * * @return a <tt>ContentDescriptor</tt> which describes the content made * available by the wrapped <tt>SourceStream</tt> */ public ContentDescriptor getContentDescriptor() { return stream.getContentDescriptor(); }
/** * Implements {@link SourceStream#getContentLength()}. Delegates to the * input <tt>SourceStreams</tt> of this instance. * * @return the length of the content made available by this instance which * is the maximum length of the contents made available by its input * <tt>StreamSource</tt>s */ @Override public long getContentLength() { long contentLength = 0; synchronized (inStreamsSyncRoot) { if (inStreams != null) for (InStreamDesc inStreamDesc : inStreams) { long inContentLength = inStreamDesc.getInStream().getContentLength(); if (LENGTH_UNKNOWN == inContentLength) return LENGTH_UNKNOWN; if (contentLength < inContentLength) contentLength = inContentLength; } } return contentLength; }
/** * 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; }