Package org.apache.sanselan.common.byteSources

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


    return imageParser.dumpImageFile(byteSource);
  }

  public static FormatCompliance getFormatCompliance(byte bytes[])
      throws ImageReadException, IOException {
    return getFormatCompliance(new ByteSourceArray(bytes));
  }
View Full Code Here


   *            Byte array containing an image file.
   * @return A vector of BufferedImages.
   */
  public static ArrayList getAllBufferedImages(byte bytes[])
      throws ImageReadException, IOException {
    return getAllBufferedImages(new ByteSourceArray(bytes));
  }
View Full Code Here

   * @return A BufferedImage.
   * @see SanselanConstants
   */
  public static BufferedImage getBufferedImage(byte bytes[])
      throws ImageReadException, IOException {
    return getBufferedImage(new ByteSourceArray(bytes), null);
  }
View Full Code Here

   * @return A BufferedImage.
   * @see SanselanConstants
   */
  public static BufferedImage getBufferedImage(byte bytes[], Map params)
      throws ImageReadException, IOException {
    return getBufferedImage(new ByteSourceArray(bytes), params);
  }
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

  }

  public final IImageMetadata getMetadata(byte bytes[], Map params)
      throws ImageReadException, IOException
  {
    return getMetadata(new ByteSourceArray(bytes), params);
  }
View Full Code Here

  }

  public final ImageInfo getImageInfo(byte bytes[], Map params)
      throws ImageReadException, IOException
  {
    return getImageInfo(new ByteSourceArray(bytes), params);
  }
View Full Code Here

  }

  public final FormatCompliance getFormatCompliance(byte bytes[])
      throws ImageReadException, IOException
  {
    return getFormatCompliance(new ByteSourceArray(bytes));
  }
View Full Code Here

  }

  public final ArrayList getAllBufferedImages(byte bytes[])
      throws ImageReadException, IOException
  {
    return getAllBufferedImages(new ByteSourceArray(bytes));
  }
View Full Code Here

TOP

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

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.