Package org.apache.sanselan.common.byteSources

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


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

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


            // boolean ignoreImageData = isPhilHarveyTestImage(imageFile);
            // if (ignoreImageData)
            // continue;

            ByteSource byteSource = new ByteSourceFile(imageFile);
            // Debug.debug("Source Segments:");
            // new JpegUtils().dumpJFIF(byteSource);

            Map params = new HashMap();
            String xmpXml = new JpegImageParser().getXmpXml(byteSource, params);
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

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

   * @param  os  OutputStream to write the image to.
   */
  public void removeExifMetadata(InputStream src, OutputStream os)
      throws ImageReadException, IOException, ImageWriteException
  {
    ByteSource byteSource = new ByteSourceInputStream(src, null);
    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 updateExifMetadataLossless(byte src[], OutputStream os,
      TiffOutputSet outputSet) throws ImageReadException, IOException,
      ImageWriteException
  {
    ByteSource byteSource = new ByteSourceArray(src);
    updateExifMetadataLossless(byteSource, os, outputSet);
  }
View Full Code Here

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

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

   */
  public void updateExifMetadataLossy(InputStream src, OutputStream os,
      TiffOutputSet outputSet) throws ImageReadException, IOException,
      ImageWriteException
  {
    ByteSource byteSource = new ByteSourceInputStream(src, null);
    updateExifMetadataLossy(byteSource, os, outputSet);
  }
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.