/** * Implements SourceStream#getContentLength(). Delegates to the wrapped * SourceStream. * * @return content length */ public long getContentLength() { return stream.getContentLength(); }
/** * 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#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; }