Package org.apache.sanselan.common.byteSources

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


    //    Debug.debug("possible file", file);

    try
    {
      ByteSource byteSource = new ByteSourceFile(file);
      return new JpegImageParser().hasExifSegment(byteSource);
    }
    catch (Exception e)
    {
      //      Debug.debug("Error file", file.getAbsoluteFile());
View Full Code Here


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

   */
  public void updateExifMetadataLossless(File src, OutputStream os,
      TiffOutputSet outputSet) throws ImageReadException, IOException,
      ImageWriteException
  {
    ByteSource byteSource = new ByteSourceFile(src);
    updateExifMetadataLossless(byteSource, os, outputSet);
  }
View Full Code Here

   */
  public void updateExifMetadataLossy(File src, OutputStream os,
      TiffOutputSet outputSet) throws ImageReadException, IOException,
      ImageWriteException
  {
    ByteSource byteSource = new ByteSourceFile(src);
    updateExifMetadataLossy(byteSource, os, outputSet);
  }
View Full Code Here

  public IccProfileInfo getICCProfileInfo(File file)
  {
    if (file == null)
      return null;

    return getICCProfileInfo(new ByteSourceFile(file));
  }
View Full Code Here

  public Boolean issRGB(File file)
  {
    if (file == null)
      return null;

    return issRGB(new ByteSourceFile(file));
  }
View Full Code Here

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

   *            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

   *            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

TOP

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

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.