Class DataUri

java.lang.Object
com.github.weisj.jsvg.util.DataUri

final class DataUri extends Object
Copyright (c) 2013 ooxi ...

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.

3. This notice may not be removed or altered from any source distribution.

Note: This file has been modified for usage in the JSVG project.

  • Field Details

    • CHARSET_OPTION_NAME

      private static final String CHARSET_OPTION_NAME
      See Also:
    • FILENAME_OPTION_NAME

      private static final String FILENAME_OPTION_NAME
      See Also:
    • CONTENT_DISPOSITION_OPTION_NAME

      private static final String CONTENT_DISPOSITION_OPTION_NAME
      See Also:
    • mime

      @NotNull private final @NotNull String mime
    • charset

      @Nullable private final @Nullable Charset charset
    • filename

      @Nullable private final @Nullable String filename
    • contentDisposition

      @Nullable private final @Nullable String contentDisposition
    • data

      private final byte @NotNull [] data
    • PLUS

      private static final Pattern PLUS
  • Constructor Details

    • DataUri

      public DataUri(String mime, Charset charset, byte[] data)
    • DataUri

      public DataUri(@NotNull @NotNull String mime, @Nullable @Nullable Charset charset, @Nullable @Nullable String filename, @Nullable @Nullable String contentDisposition, byte @NotNull [] data)
  • Method Details