code: @SuppressWarnings("deprecation")
      @Override
      public void setContent(InputStream data) throws IOException {
          try {
              File tempFile = File.createTempFile("fedora-view-svg-", null);
              tempFile.deleteOnExit();
              StreamUtility
                      .pipeStream(data, new FileOutputStream(tempFile), 4096);
              if (m_svgCanvas == null) {
                  m_svgCanvas = new JSVGCanvas();
                  m_svgCanvas.setDocumentState(JSVGComponent.ALWAYS_DYNAMIC);
                  m_svgCanvas.setURI(tempFile.toURL().toString());
              } else {
                  m_svgCanvas.setURI(tempFile.toURL().toString());
              }
          } catch (Exception e) {
              throw new IOException(e.getMessage());
          }
      }
docs: Re-initializes the handler given new input data. The old data can be
  discarded.