Java Doc for J2KImageReader.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » com » sun » media » imageioimpl » plugins » jpeg2000 » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » com.sun.media.imageioimpl.plugins.jpeg2000 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.imageio.ImageReader
      com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReader

J2KImageReader
public class J2KImageReader extends ImageReader implements MsgLogger(Code)
This class is the Java Image IO plugin reader for JPEG 2000 JP2 image file format. It has the capability to load the compressed bilevel images, color-indexed byte images, or multi-band images in byte/ushort/short/int data type. It may subsample the image, select bands, clip the image, and shift the decoded image origin if the proper decoding parameter are set in the provided J2KImageReadParam.



Constructor Summary
public  J2KImageReader(ImageReaderSpi originator)
     Constructs J2KImageReader from the provided ImageReaderSpi.

Method Summary
public  booleancanReadRaster()
    
public static  voidcheckReadParamBandSettingsWrapper(ImageReadParam param, int numSrcBands, int numDstBands)
     Wrapper for the protected method checkReadParamBandSettings.
public static  voidcomputeRegionsWrapper(ImageReadParam param, boolean allowZeroDestOffset, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion)
     Wrapper for the protected method computeRegions.
public  voidflush()
    
public  booleangetAbortRequest()
     This method wraps the protected method abortRequested to allow the abortions be monitored by J2KReadState.
public  ImageReadParamgetDefaultReadParam()
    
public  intgetHeight(int imageIndex)
    
public  IIOMetadatagetImageMetadata(int imageIndex)
    
public  IteratorgetImageTypes(int imageIndex)
    
public  intgetNumImages(boolean allowSearch)
     Overrides the method defined in the superclass.
static  RectanglegetReducedRect(Rectangle r, int maxLevel, int level, int subX, int subY)
     Convert a rectangle provided in the coordinate system of the JPEG2000 reference grid to coordinates at a lower resolution level where zero denotes the lowest resolution level.
Parameters:
  r - A rectangle in references grid coordinates.
Parameters:
  maxLevel - The highest resolution level in the image.
Parameters:
  level - The resolution level of the returned rectangle.
Parameters:
  subX - The horizontal subsampling step size.
Parameters:
  subY - The vertical subsampling step size.
public  IIOMetadatagetStreamMetadata()
    
public  intgetTileGridXOffset(int imageIndex)
    
public  intgetTileGridYOffset(int imageIndex)
    
public  intgetTileHeight(int imageIndex)
    
public  intgetTileWidth(int imageIndex)
    
public  intgetWidth(int imageIndex)
    
public  booleanisImageTiled(int imageIndex)
    
public  booleanisRandomAccessEasy(int imageIndex)
    
public  voidprintln(String str, int flind, int ind)
    
public  voidprintmsg(int sev, String msg)
    
public  voidprocessImageProgressWrapper(float percentageDone)
     Wrapper for the protected method processImageProgress So it can be access from the classes which are not in ImageReader hierarchy.
public  voidprocessImageUpdateWrapper(BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)
     Wrapper for the protected method processImageUpdate So it can be access from the classes which are not in ImageReader hierarchy.
public  BufferedImageread(int imageIndex, ImageReadParam param)
    
public  RenderedImagereadAsRenderedImage(int imageIndex, ImageReadParam param)
    
public  voidreadHeader()
    
public  RasterreadRaster(int imageIndex, ImageReadParam param)
    
public  voidreset()
    
public  voidsetInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
     Overrides the method defined in the superclass.


Constructor Detail
J2KImageReader
public J2KImageReader(ImageReaderSpi originator)(Code)
Constructs J2KImageReader from the provided ImageReaderSpi.




Method Detail
canReadRaster
public boolean canReadRaster()(Code)



checkReadParamBandSettingsWrapper
public static void checkReadParamBandSettingsWrapper(ImageReadParam param, int numSrcBands, int numDstBands)(Code)
Wrapper for the protected method checkReadParamBandSettings. So it can be access from the classes which are not in ImageReader hierarchy.



computeRegionsWrapper
public static void computeRegionsWrapper(ImageReadParam param, boolean allowZeroDestOffset, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion)(Code)
Wrapper for the protected method computeRegions. So it can be access from the classes which are not in ImageReader hierarchy.



flush
public void flush()(Code)



getAbortRequest
public boolean getAbortRequest()(Code)
This method wraps the protected method abortRequested to allow the abortions be monitored by J2KReadState.



getDefaultReadParam
public ImageReadParam getDefaultReadParam()(Code)



getHeight
public int getHeight(int imageIndex) throws IOException(Code)



getImageMetadata
public IIOMetadata getImageMetadata(int imageIndex) throws IOException(Code)



getImageTypes
public Iterator getImageTypes(int imageIndex) throws IOException(Code)



getNumImages
public int getNumImages(boolean allowSearch) throws IOException(Code)
Overrides the method defined in the superclass.



getReducedRect
static Rectangle getReducedRect(Rectangle r, int maxLevel, int level, int subX, int subY)(Code)
Convert a rectangle provided in the coordinate system of the JPEG2000 reference grid to coordinates at a lower resolution level where zero denotes the lowest resolution level.
Parameters:
  r - A rectangle in references grid coordinates.
Parameters:
  maxLevel - The highest resolution level in the image.
Parameters:
  level - The resolution level of the returned rectangle.
Parameters:
  subX - The horizontal subsampling step size.
Parameters:
  subY - The vertical subsampling step size. The parameter rectangle converted to a lower resolution level.
throws:
  IllegalArgumentException - if r is null,maxLevel or level is negative, orlevel is greater than maxLevel.



getStreamMetadata
public IIOMetadata getStreamMetadata() throws IOException(Code)



getTileGridXOffset
public int getTileGridXOffset(int imageIndex) throws IOException(Code)



getTileGridYOffset
public int getTileGridYOffset(int imageIndex) throws IOException(Code)



getTileHeight
public int getTileHeight(int imageIndex) throws IOException(Code)



getTileWidth
public int getTileWidth(int imageIndex) throws IOException(Code)



getWidth
public int getWidth(int imageIndex) throws IOException(Code)



isImageTiled
public boolean isImageTiled(int imageIndex)(Code)



isRandomAccessEasy
public boolean isRandomAccessEasy(int imageIndex) throws IOException(Code)



println
public void println(String str, int flind, int ind)(Code)



printmsg
public void printmsg(int sev, String msg)(Code)



processImageProgressWrapper
public void processImageProgressWrapper(float percentageDone)(Code)
Wrapper for the protected method processImageProgress So it can be access from the classes which are not in ImageReader hierarchy.



processImageUpdateWrapper
public void processImageUpdateWrapper(BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)(Code)
Wrapper for the protected method processImageUpdate So it can be access from the classes which are not in ImageReader hierarchy.



read
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException(Code)



readAsRenderedImage
public RenderedImage readAsRenderedImage(int imageIndex, ImageReadParam param) throws IOException(Code)



readHeader
public void readHeader()(Code)



readRaster
public Raster readRaster(int imageIndex, ImageReadParam param) throws IOException(Code)



reset
public void reset()(Code)



setInput
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)(Code)
Overrides the method defined in the superclass.



Fields inherited from javax.imageio.ImageReader
protected Locale[] availableLocales(Code)(Java Doc)
protected boolean ignoreMetadata(Code)(Java Doc)
protected Object input(Code)(Java Doc)
protected Locale locale(Code)(Java Doc)
protected int minIndex(Code)(Java Doc)
protected ImageReaderSpi originatingProvider(Code)(Java Doc)
protected List<IIOReadProgressListener> progressListeners(Code)(Java Doc)
protected boolean seekForwardOnly(Code)(Java Doc)
protected List<IIOReadUpdateListener> updateListeners(Code)(Java Doc)
protected List<IIOReadWarningListener> warningListeners(Code)(Java Doc)
protected List<Locale> warningLocales(Code)(Java Doc)

Methods inherited from javax.imageio.ImageReader
public synchronized void abort()(Code)(Java Doc)
protected synchronized boolean abortRequested()(Code)(Java Doc)
public void addIIOReadProgressListener(IIOReadProgressListener listener)(Code)(Java Doc)
public void addIIOReadUpdateListener(IIOReadUpdateListener listener)(Code)(Java Doc)
public void addIIOReadWarningListener(IIOReadWarningListener listener)(Code)(Java Doc)
public boolean canReadRaster()(Code)(Java Doc)
protected static void checkReadParamBandSettings(ImageReadParam param, int numSrcBands, int numDstBands)(Code)(Java Doc)
protected synchronized void clearAbortRequest()(Code)(Java Doc)
protected static void computeRegions(ImageReadParam param, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
public float getAspectRatio(int imageIndex) throws IOException(Code)(Java Doc)
public Locale[] getAvailableLocales()(Code)(Java Doc)
public ImageReadParam getDefaultReadParam()(Code)(Java Doc)
protected static BufferedImage getDestination(ImageReadParam param, Iterator<ImageTypeSpecifier> imageTypes, int width, int height) throws IIOException(Code)(Java Doc)
public String getFormatName() throws IOException(Code)(Java Doc)
abstract public int getHeight(int imageIndex) throws IOException(Code)(Java Doc)
abstract public IIOMetadata getImageMetadata(int imageIndex) throws IOException(Code)(Java Doc)
public IIOMetadata getImageMetadata(int imageIndex, String formatName, Set<String> nodeNames) throws IOException(Code)(Java Doc)
abstract public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException(Code)(Java Doc)
public Object getInput()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public int getMinIndex()(Code)(Java Doc)
abstract public int getNumImages(boolean allowSearch) throws IOException(Code)(Java Doc)
public int getNumThumbnails(int imageIndex) throws IOException(Code)(Java Doc)
public ImageReaderSpi getOriginatingProvider()(Code)(Java Doc)
public ImageTypeSpecifier getRawImageType(int imageIndex) throws IOException(Code)(Java Doc)
protected static Rectangle getSourceRegion(ImageReadParam param, int srcWidth, int srcHeight)(Code)(Java Doc)
abstract public IIOMetadata getStreamMetadata() throws IOException(Code)(Java Doc)
public IIOMetadata getStreamMetadata(String formatName, Set<String> nodeNames) throws IOException(Code)(Java Doc)
public int getThumbnailHeight(int imageIndex, int thumbnailIndex) throws IOException(Code)(Java Doc)
public int getThumbnailWidth(int imageIndex, int thumbnailIndex) throws IOException(Code)(Java Doc)
public int getTileGridXOffset(int imageIndex) throws IOException(Code)(Java Doc)
public int getTileGridYOffset(int imageIndex) throws IOException(Code)(Java Doc)
public int getTileHeight(int imageIndex) throws IOException(Code)(Java Doc)
public int getTileWidth(int imageIndex) throws IOException(Code)(Java Doc)
abstract public int getWidth(int imageIndex) throws IOException(Code)(Java Doc)
public boolean hasThumbnails(int imageIndex) throws IOException(Code)(Java Doc)
public boolean isIgnoringMetadata()(Code)(Java Doc)
public boolean isImageTiled(int imageIndex) throws IOException(Code)(Java Doc)
public boolean isRandomAccessEasy(int imageIndex) throws IOException(Code)(Java Doc)
public boolean isSeekForwardOnly()(Code)(Java Doc)
protected void processImageComplete()(Code)(Java Doc)
protected void processImageProgress(float percentageDone)(Code)(Java Doc)
protected void processImageStarted(int imageIndex)(Code)(Java Doc)
protected void processImageUpdate(BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)(Code)(Java Doc)
protected void processPassComplete(BufferedImage theImage)(Code)(Java Doc)
protected void processPassStarted(BufferedImage theImage, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands)(Code)(Java Doc)
protected void processReadAborted()(Code)(Java Doc)
protected void processSequenceComplete()(Code)(Java Doc)
protected void processSequenceStarted(int minIndex)(Code)(Java Doc)
protected void processThumbnailComplete()(Code)(Java Doc)
protected void processThumbnailPassComplete(BufferedImage theThumbnail)(Code)(Java Doc)
protected void processThumbnailPassStarted(BufferedImage theThumbnail, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands)(Code)(Java Doc)
protected void processThumbnailProgress(float percentageDone)(Code)(Java Doc)
protected void processThumbnailStarted(int imageIndex, int thumbnailIndex)(Code)(Java Doc)
protected void processThumbnailUpdate(BufferedImage theThumbnail, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)(Code)(Java Doc)
protected void processWarningOccurred(String warning)(Code)(Java Doc)
protected void processWarningOccurred(String baseName, String keyword)(Code)(Java Doc)
public BufferedImage read(int imageIndex) throws IOException(Code)(Java Doc)
abstract public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException(Code)(Java Doc)
public IIOImage readAll(int imageIndex, ImageReadParam param) throws IOException(Code)(Java Doc)
public Iterator<IIOImage> readAll(Iterator<? extends ImageReadParam> params) throws IOException(Code)(Java Doc)
public RenderedImage readAsRenderedImage(int imageIndex, ImageReadParam param) throws IOException(Code)(Java Doc)
public Raster readRaster(int imageIndex, ImageReadParam param) throws IOException(Code)(Java Doc)
public BufferedImage readThumbnail(int imageIndex, int thumbnailIndex) throws IOException(Code)(Java Doc)
public BufferedImage readTile(int imageIndex, int tileX, int tileY) throws IOException(Code)(Java Doc)
public Raster readTileRaster(int imageIndex, int tileX, int tileY) throws IOException(Code)(Java Doc)
public boolean readerSupportsThumbnails()(Code)(Java Doc)
public void removeAllIIOReadProgressListeners()(Code)(Java Doc)
public void removeAllIIOReadUpdateListeners()(Code)(Java Doc)
public void removeAllIIOReadWarningListeners()(Code)(Java Doc)
public void removeIIOReadProgressListener(IIOReadProgressListener listener)(Code)(Java Doc)
public void removeIIOReadUpdateListener(IIOReadUpdateListener listener)(Code)(Java Doc)
public void removeIIOReadWarningListener(IIOReadWarningListener listener)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)(Code)(Java Doc)
public void setInput(Object input, boolean seekForwardOnly)(Code)(Java Doc)
public void setInput(Object input)(Code)(Java Doc)
public void setLocale(Locale locale)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.