@Test public void testEncodeBase64() { assertEquals(SvgDataUriGenerator.SVG_DATA_URI_BASE64 + "PD94bWw=", SvgDataUriGenerator.encodeBase64("<?xml")); assertEquals(SvgDataUriGenerator.SVG_DATA_URI_BASE64 + "PHN2ZyBpZD0iTGF5ZXJfTWFpbiIg", SvgDataUriGenerator.encodeBase64("<svg id=\"Layer_Main\" ")); assertEquals(SvgDataUriGenerator.SVG_DATA_URI_BASE64 + "PHVzZSB4bGluazpocmVmPSIjTGF5ZXJfMyI=", SvgDataUriGenerator.encodeBase64("<use xlink:href=\"#Layer_3\"")); }
public static String encodeBase64(final String dataUriDecoded) { return SVG_DATA_URI_BASE64 + Base64Util.encode(dataUriDecoded.getBytes(), 0, dataUriDecoded.length()); }
SvgDataUriGenerator { public static String encodeBase64(final String dataUriDecoded) { return SVG_DATA_URI_BASE64 + Base64Util.encode(dataUriDecoded.getBytes(), 0, dataUriDecoded.length()); } }
SvgDataUriGenerator { public static String encodeBase64(final String dataUriDecoded) { return SVG_DATA_URI_BASE64 + Base64Util.encode(dataUriDecoded.getBytes(), 0, dataUriDecoded.length()); }  }
SvgDataUriGenerator { public static String encodeBase64(final String dataUriDecoded) { return SVG_DATA_URI_BASE64 + Base64Util.encode(dataUriDecoded.getBytes(), 0, dataUriDecoded.length()); }  static String encodeUtf8(final String dataUriDecoded); static String encodeBase64(final String dataUriDecoded); @SuppressWarnings("unchecked") String generate(final SafeUri svgUri); String generate(final SafeUri svgUri,
                           final Collection<SafeUri> svgDefs,
                           final Collection<String> validUseRefIds); }
SvgDataUriGenerator { public static String encodeBase64(final String dataUriDecoded) { return SVG_DATA_URI_BASE64 + Base64Util.encode(dataUriDecoded.getBytes(), 0, dataUriDecoded.length()); }  static String encodeUtf8(final String dataUriDecoded); static String encodeBase64(final String dataUriDecoded); @SuppressWarnings("unchecked") String generate(final SafeUri svgUri); String generate(final SafeUri svgUri,
                           final Collection<SafeUri> svgDefs,
                           final Collection<String> validUseRefIds); static final String SVG_CONTENT_TYPE; static final String SVG_DATA_URI_BASE64; static final String SVG_DATA_URI_UTF8; }