Java Doc for TIFFFaxCompressor.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » com » sun » media » imageioimpl » plugins » tiff » 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.tiff 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.media.imageio.plugins.tiff.TIFFCompressor
      com.sun.media.imageioimpl.plugins.tiff.TIFFFaxCompressor

All known Subclasses:   com.sun.media.imageioimpl.plugins.tiff.TIFFT4Compressor,  com.sun.media.imageioimpl.plugins.tiff.TIFFT6Compressor,  com.sun.media.imageioimpl.plugins.tiff.TIFFRLECompressor,
TIFFFaxCompressor
abstract public class TIFFFaxCompressor extends TIFFCompressor (Code)


Field Summary
final public static  intBLACK
     The CCITT numerical definition of black.
final public static  intWHITE
     The CCITT numerical definition of white.
public  intbits
     Output bit buffer.
public static  byte[]byteTable
    
public static  int[][]horz
     Black and white horizontal mode table.
public static  int[]horzMode
     Horizontal mode table.
public  booleaninverseFill
     Whether bits are inserted in reverse order (TIFF FillOrder 2).
public static  int[][]makeupCodes
     Black and white make-up code table.
public static  int[]makeupCodesBlack
     Make-up codes for black runs.
public static  int[]makeupCodesWhite
     Make-up codes for white runs.
public  intndex
     Number of bits in the output bit buffer.
public static  int[][]pass
     Black and white pass mode table.
public static  int[]passMode
     Pass mode table.
public static  int[][]termCodes
     Black and white terminating code table.
public static  int[]termCodesBlack
     Terminating codes for black runs.
public static  int[]termCodesWhite
     Terminating codes for white runs.
public static  int[][]vert
     Black and white vertical mode table.
public static  int[]vertMode
     Vertical mode table.

Constructor Summary
protected  TIFFFaxCompressor(String compressionType, int compressionTagValue, boolean isCompressionLossless)
     Constructor.

Method Summary
public  intadd1DBits(byte[] buf, int where, int count, int color)
     Get code for run and add to compressed bitstream.
public  intadd2DBits(byte[] buf, int where, int[][] mode, int entry)
     Place entry from mode table into compressed bitstream.
public  intaddEOFB(byte[] buf, int where)
     Add an End-of-Facsimile-Block (EOFB == 0x001001) to the compressed bitstream.
public  intaddEOL(boolean is1DMode, boolean addFill, boolean add1, byte[] buf, int where)
     Add an End-of-Line (EOL == 0x001) to the compressed bitstream with optional byte alignment.
public  intencode1D(byte[] data, int rowOffset, int colOffset, int rowLength, byte[] compData, int compOffset)
     One-dimensionally encode a row of data using CCITT Huffman compression. The bit buffer should be initialized as required before invoking this method and should be flushed after the method returns.
public  voidinitBitBuf()
     Initialize bit buffer machinery.
public  intnextState(byte[] data, int base, int bitOffset, int maxOffset)
     Return min of maxOffset or offset of first pixel different from pixel at bitOffset.
public  voidsetMetadata(IIOMetadata metadata)
     Sets the value of the metadata field.

Field Detail
BLACK
final public static int BLACK(Code)
The CCITT numerical definition of black.



WHITE
final public static int WHITE(Code)
The CCITT numerical definition of white.



bits
public int bits(Code)
Output bit buffer.



byteTable
public static byte[] byteTable(Code)



horz
public static int[][] horz(Code)
Black and white horizontal mode table.



horzMode
public static int[] horzMode(Code)
Horizontal mode table.



inverseFill
public boolean inverseFill(Code)
Whether bits are inserted in reverse order (TIFF FillOrder 2).



makeupCodes
public static int[][] makeupCodes(Code)
Black and white make-up code table.



makeupCodesBlack
public static int[] makeupCodesBlack(Code)
Make-up codes for black runs.



makeupCodesWhite
public static int[] makeupCodesWhite(Code)
Make-up codes for white runs.



ndex
public int ndex(Code)
Number of bits in the output bit buffer.



pass
public static int[][] pass(Code)
Black and white pass mode table.



passMode
public static int[] passMode(Code)
Pass mode table.



termCodes
public static int[][] termCodes(Code)
Black and white terminating code table.



termCodesBlack
public static int[] termCodesBlack(Code)
Terminating codes for black runs.



termCodesWhite
public static int[] termCodesWhite(Code)
Terminating codes for white runs.



vert
public static int[][] vert(Code)
Black and white vertical mode table.



vertMode
public static int[] vertMode(Code)
Vertical mode table.




Constructor Detail
TIFFFaxCompressor
protected TIFFFaxCompressor(String compressionType, int compressionTagValue, boolean isCompressionLossless)(Code)
Constructor. The superclass constructor is merely invoked with the same parameters.




Method Detail
add1DBits
public int add1DBits(byte[] buf, int where, int count, int color)(Code)
Get code for run and add to compressed bitstream.



add2DBits
public int add2DBits(byte[] buf, int where, int[][] mode, int entry)(Code)
Place entry from mode table into compressed bitstream.



addEOFB
public int addEOFB(byte[] buf, int where)(Code)
Add an End-of-Facsimile-Block (EOFB == 0x001001) to the compressed bitstream.



addEOL
public int addEOL(boolean is1DMode, boolean addFill, boolean add1, byte[] buf, int where)(Code)
Add an End-of-Line (EOL == 0x001) to the compressed bitstream with optional byte alignment.



encode1D
public int encode1D(byte[] data, int rowOffset, int colOffset, int rowLength, byte[] compData, int compOffset)(Code)
One-dimensionally encode a row of data using CCITT Huffman compression. The bit buffer should be initialized as required before invoking this method and should be flushed after the method returns. The fill order is always highest-order to lowest-order bit so the calling routine should handle bit inversion.



initBitBuf
public void initBitBuf()(Code)
Initialize bit buffer machinery.



nextState
public int nextState(byte[] data, int base, int bitOffset, int maxOffset)(Code)
Return min of maxOffset or offset of first pixel different from pixel at bitOffset.



setMetadata
public void setMetadata(IIOMetadata metadata)(Code)
Sets the value of the metadata field.

The implementation in this class also sets local options from the FILL_ORDER field if it exists.


Parameters:
  metadata - the IIOMetadata object for theimage being written.
See Also:   TIFFFaxCompressor.getMetadata()



Fields inherited from com.sun.media.imageio.plugins.tiff.TIFFCompressor
protected int compressionTagValue(Code)(Java Doc)
protected String compressionType(Code)(Java Doc)
protected boolean isCompressionLossless(Code)(Java Doc)
protected IIOMetadata metadata(Code)(Java Doc)
protected ImageOutputStream stream(Code)(Java Doc)
protected ImageWriter writer(Code)(Java Doc)

Methods inherited from com.sun.media.imageio.plugins.tiff.TIFFCompressor
abstract public int encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) throws IOException(Code)(Java Doc)
public int getCompressionTagValue()(Code)(Java Doc)
public String getCompressionType()(Code)(Java Doc)
public IIOMetadata getMetadata()(Code)(Java Doc)
public ImageOutputStream getStream()(Code)(Java Doc)
public ImageWriter getWriter()(Code)(Java Doc)
public boolean isCompressionLossless()(Code)(Java Doc)
public void setMetadata(IIOMetadata metadata)(Code)(Java Doc)
public void setStream(ImageOutputStream stream)(Code)(Java Doc)
public void setWriter(ImageWriter writer)(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.