Package 

Class SvgDecodeUtils

    • Method Summary

      Modifier and Type Method Description
      final static Boolean isSvg(DecodeUtils $self, BufferedSource source) Return 'true' if the source contains an SVG image.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isSvg

         final static Boolean isSvg(DecodeUtils $self, BufferedSource source)

        Return 'true' if the source contains an SVG image. The source is not consumed.

        NOTE: There's no guaranteed method to determine if a byte stream is an SVG without attempting to decode it. This method uses heuristics.