@@ -478,6 +478,8 @@ public static CascadingStyleSheet readFromString (@Nonnull final String sCSS)
478478 * @since 3.7.3
479479 */
480480 @ Nullable
481+ @ Deprecated (forRemoval = true , since = "8.0.0" )
482+ @ DevelopersNote ("Use the version with CSSReaderSettings instead" )
481483 public static CascadingStyleSheet readFromString (@ Nonnull final String sCSS ,
482484 @ Nullable final ICSSParseErrorHandler aCustomErrorHandler )
483485 {
@@ -497,6 +499,8 @@ public static CascadingStyleSheet readFromString (@Nonnull final String sCSS,
497499 * @since 3.7.3
498500 */
499501 @ Nullable
502+ @ Deprecated (forRemoval = true , since = "8.0.0" )
503+ @ DevelopersNote ("Use the version with CSSReaderSettings instead" )
500504 public static CascadingStyleSheet readFromString (@ Nonnull final String sCSS ,
501505 @ Nullable final ICSSParseExceptionCallback aCustomExceptionHandler )
502506 {
@@ -519,6 +523,8 @@ public static CascadingStyleSheet readFromString (@Nonnull final String sCSS,
519523 * @since 3.7.3
520524 */
521525 @ Nullable
526+ @ Deprecated (forRemoval = true , since = "8.0.0" )
527+ @ DevelopersNote ("Use the version with CSSReaderSettings instead" )
522528 public static CascadingStyleSheet readFromString (@ Nonnull final String sCSS ,
523529 @ Nullable final ICSSParseErrorHandler aCustomErrorHandler ,
524530 @ Nullable final ICSSParseExceptionCallback aCustomExceptionHandler )
@@ -557,6 +563,8 @@ public static CascadingStyleSheet readFromStringReader (@Nonnull final String sC
557563 * @return <code>null</code> if reading failed, the CSS declarations otherwise.
558564 */
559565 @ Nullable
566+ @ Deprecated (forRemoval = true , since = "8.0.0" )
567+ @ DevelopersNote ("Use the version with CSSReaderSettings instead" )
560568 public static CascadingStyleSheet readFromFile (@ Nonnull final File aFile , @ Nonnull final Charset aFallbackCharset )
561569 {
562570 return readFromFile (aFile , new CSSReaderSettings ().setFallbackCharset (aFallbackCharset ));
@@ -576,13 +584,14 @@ public static CascadingStyleSheet readFromFile (@Nonnull final File aFile, @Nonn
576584 * @return <code>null</code> if reading failed, the CSS declarations otherwise.
577585 */
578586 @ Nullable
587+ @ Deprecated (forRemoval = true , since = "8.0.0" )
588+ @ DevelopersNote ("Use the version with CSSReaderSettings instead" )
579589 public static CascadingStyleSheet readFromFile (@ Nonnull final File aFile ,
580590 @ Nonnull final Charset aFallbackCharset ,
581591 @ Nullable final ICSSParseErrorHandler aCustomErrorHandler )
582592 {
583593 return readFromFile (aFile ,
584594 new CSSReaderSettings ().setFallbackCharset (aFallbackCharset )
585-
586595 .setCustomErrorHandler (aCustomErrorHandler ));
587596 }
588597
@@ -600,13 +609,14 @@ public static CascadingStyleSheet readFromFile (@Nonnull final File aFile,
600609 * @return <code>null</code> if reading failed, the CSS declarations otherwise.
601610 */
602611 @ Nullable
612+ @ Deprecated (forRemoval = true , since = "8.0.0" )
613+ @ DevelopersNote ("Use the version with CSSReaderSettings instead" )
603614 public static CascadingStyleSheet readFromFile (@ Nonnull final File aFile ,
604615 @ Nonnull final Charset aFallbackCharset ,
605616 @ Nullable final ICSSParseExceptionCallback aCustomExceptionHandler )
606617 {
607618 return readFromFile (aFile ,
608619 new CSSReaderSettings ().setFallbackCharset (aFallbackCharset )
609-
610620 .setCustomExceptionHandler (aCustomExceptionHandler ));
611621 }
612622
@@ -627,14 +637,15 @@ public static CascadingStyleSheet readFromFile (@Nonnull final File aFile,
627637 * @return <code>null</code> if reading failed, the CSS declarations otherwise.
628638 */
629639 @ Nullable
640+ @ Deprecated (forRemoval = true , since = "8.0.0" )
641+ @ DevelopersNote ("Use the version with CSSReaderSettings instead" )
630642 public static CascadingStyleSheet readFromFile (@ Nonnull final File aFile ,
631643 @ Nonnull final Charset aFallbackCharset ,
632644 @ Nullable final ICSSParseErrorHandler aCustomErrorHandler ,
633645 @ Nullable final ICSSParseExceptionCallback aCustomExceptionHandler )
634646 {
635647 return readFromFile (aFile ,
636648 new CSSReaderSettings ().setFallbackCharset (aFallbackCharset )
637-
638649 .setCustomErrorHandler (aCustomErrorHandler )
639650 .setCustomExceptionHandler (aCustomExceptionHandler ));
640651 }
@@ -669,6 +680,8 @@ public static CascadingStyleSheet readFromFile (@Nonnull final File aFile, @Nonn
669680 * @return <code>null</code> if reading failed, the CSS declarations otherwise.
670681 */
671682 @ Nullable
683+ @ Deprecated (forRemoval = true , since = "8.0.0" )
684+ @ DevelopersNote ("Use the version with CSSReaderSettings instead" )
672685 public static CascadingStyleSheet readFromStream (@ Nonnull final IHasInputStream aISP ,
673686 @ Nonnull final Charset aFallbackCharset )
674687 {
@@ -692,13 +705,14 @@ public static CascadingStyleSheet readFromStream (@Nonnull final IHasInputStream
692705 * @return <code>null</code> if reading failed, the CSS declarations otherwise.
693706 */
694707 @ Nullable
708+ @ Deprecated (forRemoval = true , since = "8.0.0" )
709+ @ DevelopersNote ("Use the version with CSSReaderSettings instead" )
695710 public static CascadingStyleSheet readFromStream (@ Nonnull final IHasInputStream aISP ,
696711 @ Nonnull final Charset aFallbackCharset ,
697712 @ Nullable final ICSSParseErrorHandler aCustomErrorHandler )
698713 {
699714 return readFromStream (aISP ,
700715 new CSSReaderSettings ().setFallbackCharset (aFallbackCharset )
701-
702716 .setCustomErrorHandler (aCustomErrorHandler ));
703717 }
704718
0 commit comments