/** * Implements {@link DataSource#getContentType()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePushBufferDataSource#getContentType()} * because the wrapped <tt>DataSource</tt> may not be a * <tt>CaptureDevice</tt> yet it still needs to report the content type. * * @return a <tt>String</tt> value which describes the content type of the * wrapped <tt>DataSource</tt> */ @Override public String getContentType() { return dataSource.getContentType(); }
/** * Implements {@link DataSource#getContentType()}. Delegates to the actual * output of the transcoding. * * @return a <tt>String</tt> value which describes the type of the content * made available by this <tt>DataSource</tt> */ @Override public synchronized String getContentType() { return (outputDataSource == null) ? null : outputDataSource.getContentType(); }
/** * Implements {@link DataSource#getContentType()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePullBufferDataSource#getContentType()} * because the wrapped <tt>DataSource</tt> may not be a * <tt>CaptureDevice</tt> yet it still needs to report the content type. * * @return a <tt>String</tt> value which describes the content type of the * wrapped <tt>DataSource</tt> */ @Override public String getContentType() { return dataSource.getContentType(); }
/** * Implements {@link DataSource#getContentType()}. Delegates to the wrapped * <tt>CaptureDevice</tt> if it implements <tt>DataSource</tt>; otherwise, * returns {@link ContentDescriptor#CONTENT_UNKNOWN}. * * @return a <tt>String</tt> value which describes the content type of the * wrapped <tt>CaptureDevice</tt> if it implements <tt>DataSource</tt>; * otherwise, <tt>ContentDescriptor#CONTENT_UNKNOWN</tt> */ @Override public String getContentType() { if (captureDevice instanceof DataSource) return ((DataSource) captureDevice).getContentType(); return ContentDescriptor.CONTENT_UNKNOWN; }
/** * Implements {@link DataSource#getContentType()}. Delegates to the wrapped * <tt>CaptureDevice</tt> if it implements <tt>DataSource</tt>; otherwise, * returns {@link ContentDescriptor#CONTENT_UNKNOWN}. * * @return a <tt>String</tt> value which describes the content type of the * wrapped <tt>CaptureDevice</tt> if it implements <tt>DataSource</tt>; * otherwise, <tt>ContentDescriptor#CONTENT_UNKNOWN</tt> */ @Override public String getContentType() { if (captureDevice instanceof DataSource) return ((DataSource) captureDevice).getContentType(); return ContentDescriptor.CONTENT_UNKNOWN; }