Java Doc for ByteUtils.java in  » GIS » deegree » org » deegree » model » spatialschema » 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 » GIS » deegree » org.deegree.model.spatialschema 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.deegree.model.spatialschema.ByteUtils

ByteUtils
public class ByteUtils (Code)
Utilities for reading and writing the components of binary files.
author:
   Tom Mitchell
version:
   $Revision: 9343 $ $Date: 2007-12-27 05:30:32 -0800 (Thu, 27 Dec 2007) $ modified
version:
   Last changes:

version:
   25.11.1999 ap: memory allocation dynaminized

version:
   17.01.2000 ap: method SHPPoint readPoint(byte[] b, int off) modified

version:
   17.01.2000 ap: method SHPEnvelope readBox(byte[] b, int off) modified

version:
   17.01.2000 ap: method writePoint(..) modified

version:
   25.01.2000 ap: method writeBELong(..) added

version:
   25.01.2000 ap: method writeBEDouble(..) added

version:
   25.01.2000 ap: method readBELong(..) added

version:
   25.01.2000 ap: method readBEDouble(..) added

version:
   22.04.2000 ap: method readBEShort(byte[] b, int off) added

version:
   22.04.2000 ap: method readLEShort(byte[] b, int off) added

version:
   22.04.2000 ap: method writeBEShort(byte[] b, int off) added

version:
   22.04.2000 ap: method writeLEShort(byte[] b, int off) added

version:
  


version:
   ----------------------------------------------------------------------------
version:
  


author:
   Andreas Poth
version:
   $Revision: 9343 $ $Date: 2007-12-27 05:30:32 -0800 (Thu, 27 Dec 2007) $
version:
  





Method Summary
public static  doublereadBEDouble(byte[] b, int off)
     method: readBEDouble(byte[] b, int off)
Reads a big endian double.
public static  floatreadBEFloat(byte[] b, int off)
     Reads a big endian float.
public static  intreadBEInt(byte[] b, int off)
     Reads a big endian integer.
public static  longreadBELong(byte[] b, int off)
     method: readBELong(byte[] b, int off)
Reads a little endian 8 byte integer.
public static  intreadBEShort(byte[] b, int off)
     method: readBEShort(byte[] b, int off)
Reads a big endian small integer.
public static  doublereadLEDouble(byte[] b, int off)
     method: readLEDouble(byte[] b, int off)
Reads a little endian double.
public static  floatreadLEFloat(byte[] b, int off)
     Reads a little endian float.
public static  intreadLEInt(byte[] b, int off)
     Reads a little endian integer.
public static  longreadLELong(byte[] b, int off)
     method: readLELong(byte[] b, int off)
Reads a little endian 8 byte integer.
public static  intreadLEShort(byte[] b, int off)
     method: readLEShort(byte[] b, int off)
Reads a little endian small integer.
public static  intwriteBEDouble(byte[] b, int off, double val)
     method: writeBEDouble(byte[] b, int off, double val)
Writes the given double to the given buffer at the given location in big endian format.
public static  intwriteBEInt(byte[] b, int off, int val)
     method: writeBEInt(byte[] b, int off, int val)
Writes the given integer to the given buffer at the given location in big endian format.
public static  intwriteBELong(byte[] b, int off, long val)
     method: writeBELong(byte[] b, int off, long val)
Writes the given long to the given buffer at the given location in big endian format.
public static  intwriteBEShort(byte[] b, int off, int val)
     method: writeBEShort(byte[] b, int off, int val)
Writes the given short to the given buffer at the given location in big endian format.
public static  intwriteLEDouble(byte[] b, int off, double val)
     method: writeLEDouble(byte[] b, int off, double val)
Writes the given double to the given buffer at the given location in little endian format.
public static  intwriteLEInt(byte[] b, int off, int val)
     method: writeLEInt(byte[] b, int off, int val)
Writes the given integer to the given buffer at the given location in little endian format.
public static  intwriteLELong(byte[] b, int off, long val)
     method: writeLELong(byte[] b, int off, long val)
Writes the given long to the given buffer at the given location in little endian format.
public static  intwriteLEShort(byte[] b, int off, int val)
     method: writeLEShort(byte[] b, int off, int val)
Writes the given short to the given buffer at the given location in big endian format.



Method Detail
readBEDouble
public static double readBEDouble(byte[] b, int off)(Code)
method: readBEDouble(byte[] b, int off)
Reads a big endian double.
Parameters:
  b - the raw data buffer
Parameters:
  off - the offset into the buffer where the double resides the double read from the buffer at the offset location



readBEFloat
public static float readBEFloat(byte[] b, int off)(Code)
Reads a big endian float.
Parameters:
  b - the raw data buffer
Parameters:
  off - the offset into the buffer where the float resides the float read from the buffer at the offset location



readBEInt
public static int readBEInt(byte[] b, int off)(Code)
Reads a big endian integer.
Parameters:
  b - the raw data buffer
Parameters:
  off - the offset into the buffer where the int resides the int read from the buffer at the offset location



readBELong
public static long readBELong(byte[] b, int off)(Code)
method: readBELong(byte[] b, int off)
Reads a little endian 8 byte integer.
Parameters:
  b - the raw data buffer
Parameters:
  off - the offset into the buffer where the long resides the long read from the buffer at the offset location



readBEShort
public static int readBEShort(byte[] b, int off)(Code)
method: readBEShort(byte[] b, int off)
Reads a big endian small integer.
Parameters:
  b - the raw data buffer
Parameters:
  off - the offset into the buffer where the int resides the int read from the buffer at the offset locationnot tested!



readLEDouble
public static double readLEDouble(byte[] b, int off)(Code)
method: readLEDouble(byte[] b, int off)
Reads a little endian double.
Parameters:
  b - the raw data buffer
Parameters:
  off - the offset into the buffer where the double resides the double read from the buffer at the offset location



readLEFloat
public static float readLEFloat(byte[] b, int off)(Code)
Reads a little endian float.
Parameters:
  b - the raw data buffer
Parameters:
  off - the offset into the buffer where the float resides the float read from the buffer at the offset location



readLEInt
public static int readLEInt(byte[] b, int off)(Code)
Reads a little endian integer.
Parameters:
  b - the raw data buffer
Parameters:
  off - the offset into the buffer where the int resides the int read from the buffer at the offset location



readLELong
public static long readLELong(byte[] b, int off)(Code)
method: readLELong(byte[] b, int off)
Reads a little endian 8 byte integer.
Parameters:
  b - the raw data buffer
Parameters:
  off - the offset into the buffer where the long resides the long read from the buffer at the offset location



readLEShort
public static int readLEShort(byte[] b, int off)(Code)
method: readLEShort(byte[] b, int off)
Reads a little endian small integer.
Parameters:
  b - the raw data buffer
Parameters:
  off - the offset into the buffer where the int resides the int read from the buffer at the offset locationnot tested!



writeBEDouble
public static int writeBEDouble(byte[] b, int off, double val)(Code)
method: writeBEDouble(byte[] b, int off, double val)
Writes the given double to the given buffer at the given location in big endian format.
Parameters:
  b - the data buffer
Parameters:
  off - the offset into the buffer where writing should occur
Parameters:
  val - the double to write the number of bytes written



writeBEInt
public static int writeBEInt(byte[] b, int off, int val)(Code)
method: writeBEInt(byte[] b, int off, int val)
Writes the given integer to the given buffer at the given location in big endian format.
Parameters:
  b - the data buffer
Parameters:
  off - the offset into the buffer where writing should occur
Parameters:
  val - the integer to write the number of bytes written



writeBELong
public static int writeBELong(byte[] b, int off, long val)(Code)
method: writeBELong(byte[] b, int off, long val)
Writes the given long to the given buffer at the given location in big endian format.
Parameters:
  b - the data buffer
Parameters:
  off - the offset into the buffer where writing should occur
Parameters:
  val - the long to write the number of bytes written



writeBEShort
public static int writeBEShort(byte[] b, int off, int val)(Code)
method: writeBEShort(byte[] b, int off, int val)
Writes the given short to the given buffer at the given location in big endian format.
Parameters:
  b - the data buffer
Parameters:
  off - the offset into the buffer where writing should occur
Parameters:
  val - the short to write the number of bytes writtennot tested!



writeLEDouble
public static int writeLEDouble(byte[] b, int off, double val)(Code)
method: writeLEDouble(byte[] b, int off, double val)
Writes the given double to the given buffer at the given location in little endian format.
Parameters:
  b - the data buffer
Parameters:
  off - the offset into the buffer where writing should occur
Parameters:
  val - the double to write the number of bytes written



writeLEInt
public static int writeLEInt(byte[] b, int off, int val)(Code)
method: writeLEInt(byte[] b, int off, int val)
Writes the given integer to the given buffer at the given location in little endian format.
Parameters:
  b - the data buffer
Parameters:
  off - the offset into the buffer where writing should occur
Parameters:
  val - the integer to write the number of bytes written



writeLELong
public static int writeLELong(byte[] b, int off, long val)(Code)
method: writeLELong(byte[] b, int off, long val)
Writes the given long to the given buffer at the given location in little endian format.
Parameters:
  b - the data buffer
Parameters:
  off - the offset into the buffer where writing should occur
Parameters:
  val - the long to write the number of bytes written



writeLEShort
public static int writeLEShort(byte[] b, int off, int val)(Code)
method: writeLEShort(byte[] b, int off, int val)
Writes the given short to the given buffer at the given location in big endian format.
Parameters:
  b - the data buffer
Parameters:
  off - the offset into the buffer where writing should occur
Parameters:
  val - the short to write the number of bytes writtennot tested!



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.