Java Doc for BHSDCodec.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » pack200 » 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 » Apache Harmony Java SE » org package » org.apache.harmony.pack200 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.pack200.Codec
      org.apache.harmony.pack200.BHSDCodec

BHSDCodec
final public class BHSDCodec extends Codec (Code)
TODO Comment -- quite a lot can be nicked from Codec, since this was created from it



Constructor Summary
public  BHSDCodec(int b, int h)
     Constructs an unsigned, non-delta Codec with the given B and H values.
public  BHSDCodec(int b, int h, int s)
     Constructs a non-delta Codec with the given B, H and S values.
public  BHSDCodec(int b, int h, int s, int d)
     Constructs a Codec with the given B, H, S and D values.

Method Summary
public  longcardinality()
     Returns the cardinality of this codec; that is, the number of distinct values that it can contain.
public  longdecode(InputStream in)
    
public  longdecode(InputStream in, long last)
    
public  byte[]encode(long value, long last)
    
public  booleanencodes(long value)
    
public  intgetB()
    
public  intgetH()
    
public  intgetL()
    
public  booleanisDelta()
    
public  booleanisSigned()
    
public  longlargest()
     Returns the largest value that this codec can represent.
public  longsmallest()
     Returns the smallest value that this codec can represent.
public  StringtoString()
     Returns the codec in the form (1,256) or (1,64,1,1).


Constructor Detail
BHSDCodec
public BHSDCodec(int b, int h)(Code)
Constructs an unsigned, non-delta Codec with the given B and H values.
Parameters:
  b - the maximum number of bytes that a value can be encoded as[1..5]
Parameters:
  h - the radix of the encoding [1..256]



BHSDCodec
public BHSDCodec(int b, int h, int s)(Code)
Constructs a non-delta Codec with the given B, H and S values.
Parameters:
  b - the maximum number of bytes that a value can be encoded as[1..5]
Parameters:
  h - the radix of the encoding [1..256]
Parameters:
  s - whether the encoding represents signed numbers (s=0 isunsigned; s=1 is signed with 1s complement; s=2 is signed with ?)



BHSDCodec
public BHSDCodec(int b, int h, int s, int d)(Code)
Constructs a Codec with the given B, H, S and D values.
Parameters:
  b - the maximum number of bytes that a value can be encoded as[1..5]
Parameters:
  h - the radix of the encoding [1..256]
Parameters:
  s - whether the encoding represents signed numbers (s=0 isunsigned; s=1 is signed with 1s complement; s=2 is signed with ?)
Parameters:
  d - whether this is a delta encoding (d=0 is non-delta; d=1 isdelta)




Method Detail
cardinality
public long cardinality()(Code)
Returns the cardinality of this codec; that is, the number of distinct values that it can contain. the cardinality of this codec



decode
public long decode(InputStream in) throws IOException, Pack200Exception(Code)



decode
public long decode(InputStream in, long last) throws IOException, Pack200Exception(Code)



encode
public byte[] encode(long value, long last) throws Pack200Exception(Code)



encodes
public boolean encodes(long value)(Code)
True if this encoding can code the given value
Parameters:
  value - the value to check true if the encoding can encode this value



getB
public int getB()(Code)
the b



getH
public int getH()(Code)
the h



getL
public int getL()(Code)
the l



isDelta
public boolean isDelta()(Code)
Returns true if this codec is a delta codec true if this codec is a delta codec



isSigned
public boolean isSigned()(Code)
Returns true if this codec is a signed codec true if this codec is a signed codec



largest
public long largest()(Code)
Returns the largest value that this codec can represent. the largest value that this codec can represent.



smallest
public long smallest()(Code)
Returns the smallest value that this codec can represent. the smallest value that this codec can represent.



toString
public String toString()(Code)
Returns the codec in the form (1,256) or (1,64,1,1). Note that trailing zero fields are not shown.



Fields inherited from org.apache.harmony.pack200.Codec
final public static BHSDCodec BCI5(Code)(Java Doc)
final public static BHSDCodec BRANCH5(Code)(Java Doc)
final public static BHSDCodec BYTE1(Code)(Java Doc)
final public static BHSDCodec CHAR3(Code)(Java Doc)
final public static BHSDCodec DELTA5(Code)(Java Doc)
final public static BHSDCodec MDELTA5(Code)(Java Doc)
final public static BHSDCodec SIGNED5(Code)(Java Doc)
final public static BHSDCodec UDELTA5(Code)(Java Doc)
final public static BHSDCodec UNSIGNED5(Code)(Java Doc)

Methods inherited from org.apache.harmony.pack200.Codec
abstract public long decode(InputStream in) throws IOException, Pack200Exception(Code)(Java Doc)
abstract public long decode(InputStream in, long last) throws IOException, Pack200Exception(Code)(Java Doc)
public long[] decode(int n, InputStream in) throws IOException, Pack200Exception(Code)(Java Doc)
public long[] decode(int n, InputStream in, long firstValue) throws IOException, Pack200Exception(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.