/** * Read the CSS from the passed {@link IHasInputStream}. * * @param aISP * The input stream provider to use. May not be <code>null</code>. * @param aCharset * The charset to be used. May not be <code>null</code>. * @param eVersion * The CSS version to use. May not be <code>null</code>. * @return <code>null</code> if reading failed, the CSS declarations * otherwise. */ @Nullable public static CSSDeclarationList readFromStream (@Nonnull final IHasInputStream aISP, @Nonnull final Charset aCharset, @Nonnull final ECSSVersion eVersion) { return readFromStream (aISP, aCharset, eVersion, null, null); }
/** * Read the CSS from the passed {@link IHasInputStream}. * * @param aISP * The input stream provider to use. May not be <code>null</code>. * @param aCharset * The charset to be used. May not be <code>null</code>. * @param eVersion * The CSS version to use. May not be <code>null</code>. * @param aCustomExceptionHandler * An optional custom exception handler that can be used to collect the * unrecoverable parsing errors. May be <code>null</code>. * @return <code>null</code> if reading failed, the CSS declarations * otherwise. */ @Nullable public static CSSDeclarationList readFromStream (@Nonnull final IHasInputStream aISP, @Nonnull final Charset aCharset, @Nonnull final ECSSVersion eVersion, @Nullable final ICSSParseExceptionCallback aCustomExceptionHandler) { return readFromStream (aISP, aCharset, eVersion, null, aCustomExceptionHandler); }
/** * Read the CSS from the passed {@link IHasInputStream}. * * @param aISP * The input stream provider to use. May not be <code>null</code>. * @param aCharset * The charset to be used. May not be <code>null</code>. * @param eVersion * The CSS version to use. May not be <code>null</code>. * @param aCustomErrorHandler * An optional custom error handler that can be used to collect the * recoverable parsing errors. May be <code>null</code>. * @return <code>null</code> if reading failed, the CSS declarations * otherwise. */ @Nullable public static CSSDeclarationList readFromStream (@Nonnull final IHasInputStream aISP, @Nonnull final Charset aCharset, @Nonnull final ECSSVersion eVersion, @Nullable final ICSSParseErrorHandler aCustomErrorHandler) { return readFromStream (aISP, aCharset, eVersion, aCustomErrorHandler, null); }