Package org.apache.sanselan.common.byteSources

Examples of org.apache.sanselan.common.byteSources.ByteSource


   *            String containing IPTC data.
   */
  public void writeIPTC(File src, OutputStream os, PhotoshopApp13Data newData)
      throws ImageReadException, IOException, ImageWriteException
  {
    ByteSource byteSource = new ByteSourceFile(src);
    writeIPTC(byteSource, os, newData);
  }
View Full Code Here


   * @see java.io.OutputStream
   */
  public void removeXmpXml(File src, OutputStream os)
      throws ImageReadException, IOException, ImageWriteException
  {
    ByteSource byteSource = new ByteSourceFile(src);
    removeXmpXml(byteSource, os);
  }
View Full Code Here

   *            OutputStream to write the image to.
   */
  public void removeXmpXml(byte src[], OutputStream os)
      throws ImageReadException, IOException, ImageWriteException
  {
    ByteSource byteSource = new ByteSourceArray(src);
    removeXmpXml(byteSource, os);
  }
View Full Code Here

   *            OutputStream to write the image to.
   */
  public void removeXmpXml(InputStream src, OutputStream os)
      throws ImageReadException, IOException, ImageWriteException
  {
    ByteSource byteSource = new ByteSourceInputStream(src, null);
    removeXmpXml(byteSource, os);
  }
View Full Code Here

   *            String containing XMP XML.
   */
  public void updateXmpXml(byte src[], OutputStream os, String xmpXml)
      throws ImageReadException, IOException, ImageWriteException
  {
    ByteSource byteSource = new ByteSourceArray(src);
    updateXmpXml(byteSource, os, xmpXml);
  }
View Full Code Here

   *            String containing XMP XML.
   */
  public void updateXmpXml(InputStream src, OutputStream os, String xmpXml)
      throws ImageReadException, IOException, ImageWriteException
  {
    ByteSource byteSource = new ByteSourceInputStream(src, null);
    updateXmpXml(byteSource, os, xmpXml);
  }
View Full Code Here

   *            String containing XMP XML.
   */
  public void updateXmpXml(File src, OutputStream os, String xmpXml)
      throws ImageReadException, IOException, ImageWriteException
  {
    ByteSource byteSource = new ByteSourceFile(src);
    updateXmpXml(byteSource, os, xmpXml);
  }
View Full Code Here

  private void dumpElements(List elements) throws IOException
  {
    //    try
    //    {
    ByteSource byteSource = new ByteSourceArray(exifBytes);

    dumpElements(byteSource, elements);
    //    }
    //    catch (ImageReadException e)
    //    {
View Full Code Here

  private List analyzeOldTiff() throws ImageWriteException, IOException
  {
    try
    {
      ByteSource byteSource = new ByteSourceArray(exifBytes);
      Map params = null;
      FormatCompliance formatCompliance = FormatCompliance.getDefault();
      TiffContents contents = new TiffReader(false).readContents(byteSource,
          params, formatCompliance);
View Full Code Here

     * @see java.io.OutputStream
     */
    public void removeXmpXml(File src, OutputStream os)
            throws ImageReadException, IOException, ImageWriteException
    {
        ByteSource byteSource = new ByteSourceFile(src);
        removeXmpXml(byteSource, os);
    }
View Full Code Here

TOP

Related Classes of org.apache.sanselan.common.byteSources.ByteSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.