Examples of FormatCompliance


Examples of org.apache.sanselan.FormatCompliance

  }

  public IImageMetadata getMetadata(ByteSource byteSource, Map params)
      throws ImageReadException, IOException
  {
    FormatCompliance formatCompliance = FormatCompliance.getDefault();
    TiffContents contents = new TiffReader(isStrict(params)).readContents(
        byteSource, params, formatCompliance);

    ArrayList directories = contents.directories;
View Full Code Here

Examples of org.apache.sanselan.FormatCompliance

  }

  public ImageInfo getImageInfo(ByteSource byteSource, Map params)
      throws ImageReadException, IOException
  {
    FormatCompliance formatCompliance = FormatCompliance.getDefault();
    TiffContents contents = new TiffReader(isStrict(params))
        .readDirectories(byteSource, false, formatCompliance);
    TiffDirectory directory = (TiffDirectory) contents.directories.get(0);

    TiffField widthField = directory.findField(TIFF_TAG_IMAGE_WIDTH, true);
View Full Code Here

Examples of org.apache.sanselan.FormatCompliance

  }

  public String getXmpXml(ByteSource byteSource, Map params)
      throws ImageReadException, IOException
  {
    FormatCompliance formatCompliance = FormatCompliance.getDefault();
    TiffContents contents = new TiffReader(isStrict(params))
        .readDirectories(byteSource, false, formatCompliance);
    TiffDirectory directory = (TiffDirectory) contents.directories.get(0);

    TiffField xmpField = directory.findField(TIFF_TAG_XMP, false);
View Full Code Here

Examples of org.apache.sanselan.FormatCompliance

      pw.println("");

      // try
      {
        FormatCompliance formatCompliance = FormatCompliance
            .getDefault();
        Map params = null;
        TiffContents contents = new TiffReader(true).readContents(
            byteSource, params, formatCompliance);
View Full Code Here

Examples of org.apache.sanselan.FormatCompliance

  }

  public FormatCompliance getFormatCompliance(ByteSource byteSource)
      throws ImageReadException, IOException
  {
    FormatCompliance formatCompliance = FormatCompliance.getDefault();
    Map params = null;
    new TiffReader(isStrict(params)).readContents(byteSource, params,
        formatCompliance);
    return formatCompliance;
  }
View Full Code Here

Examples of org.apache.sanselan.FormatCompliance

  }

  public List collectRawImageData(ByteSource byteSource, Map params)
      throws ImageReadException, IOException
  {
    FormatCompliance formatCompliance = FormatCompliance.getDefault();
    TiffContents contents = new TiffReader(isStrict(params))
        .readDirectories(byteSource, true, formatCompliance);

    List result = new ArrayList();
    for (int i = 0; i < contents.directories.size(); i++)
View Full Code Here

Examples of org.apache.sanselan.FormatCompliance

  }

  public BufferedImage getBufferedImage(ByteSource byteSource, Map params)
      throws ImageReadException, IOException
  {
    FormatCompliance formatCompliance = FormatCompliance.getDefault();
    TiffContents contents = new TiffReader(isStrict(params))
        .readFirstDirectory(byteSource, params, true, formatCompliance);
    TiffDirectory directory = (TiffDirectory) contents.directories.get(0);
    BufferedImage result = directory.getTiffImage(params);
    if (null == result)
View Full Code Here

Examples of org.apache.sanselan.FormatCompliance

    }

    public byte[] getICCProfileBytes(ByteSource byteSource, Map params)
            throws ImageReadException, IOException
    {
        FormatCompliance formatCompliance = FormatCompliance.getDefault();
        TiffContents contents = new TiffReader(isStrict(params))
                .readFirstDirectory(byteSource, params, false, formatCompliance);
        TiffDirectory directory = (TiffDirectory) contents.directories.get(0);

        TiffField field = directory.findField(EXIF_TAG_ICC_PROFILE);
View Full Code Here

Examples of org.apache.sanselan.FormatCompliance

    }

    public Dimension getImageSize(ByteSource byteSource, Map params)
            throws ImageReadException, IOException
    {
        FormatCompliance formatCompliance = FormatCompliance.getDefault();
        TiffContents contents = new TiffReader(isStrict(params))
                .readFirstDirectory(byteSource, params, false, formatCompliance);
        TiffDirectory directory = (TiffDirectory) contents.directories.get(0);

        int width = directory.findField(TIFF_TAG_IMAGE_WIDTH).getIntValue();
View Full Code Here

Examples of org.apache.sanselan.FormatCompliance

    }

    public IImageMetadata getMetadata(ByteSource byteSource, Map params)
            throws ImageReadException, IOException
    {
        FormatCompliance formatCompliance = FormatCompliance.getDefault();
        TiffContents contents = new TiffReader(isStrict(params)).readContents(
                byteSource, params, formatCompliance);

        ArrayList directories = contents.directories;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.