Java Doc for Buffer.java in  » Database-JDBC-Connection-Pool » mysql-connector-java-5.1.3 » com » mysql » jdbc » 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 » Database JDBC Connection Pool » mysql connector java 5.1.3 » com.mysql.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.mysql.jdbc.Buffer

Buffer
class Buffer (Code)
Buffer contains code to read and write packets from/to the MySQL server.
version:
   $Id: Buffer.java 6445 2007-06-07 15:25:59Z mmatthews $
author:
   Mark Matthews


Field Summary
final static  intMAX_BYTES_TO_DUMP
    
final static  intNO_LENGTH_LIMIT
    
final static  longNULL_LENGTH
    
protected  booleanwasMultiPacket
    

Constructor Summary
 Buffer(byte[] buf)
    
 Buffer(int size)
    

Method Summary
final  voidclear()
    
final  voiddump()
    
final  Stringdump(int numBytes)
    
final  StringdumpClampedBytes(int numBytes)
    
final  voiddumpHeader()
    
final  voiddumpNBytes(int start, int nBytes)
    
final  voidensureCapacity(int additionalData)
    
public  voidfastSkipLenByteArray()
    
public  intfastSkipLenString()
    
 intgetBufLength()
    
final protected  byte[]getBufferSource()
    
public  byte[]getByteBuffer()
     Returns the array of bytes this Buffer is using to read from.
final  byte[]getBytes(int len)
    
 byte[]getBytes(int offset, int len)
    
 intgetCapacity()
    
public  ByteBuffergetNioBuffer()
    
public  intgetPosition()
    
final  booleanisLastDataPacket()
    
final  longnewReadLength()
    
final  bytereadByte()
    
final  bytereadByte(int readAt)
    
final  longreadFieldLength()
    
final  intreadInt()
    
final  intreadIntAsLong()
    
final  byte[]readLenByteArray(int offset)
    
final  longreadLength()
    
final  longreadLong()
    
final  intreadLongInt()
    
final  longreadLongLong()
    
final  StringreadString()
    
final  StringreadString(String encoding)
    
final  intreadnBytes()
    
 voidsetBufLength(int bufLengthToSet)
    
public  voidsetByteBuffer(byte[] byteBufferToSet)
     Sets the array of bytes to use as a buffer to read from.
public  voidsetPosition(int positionToSet)
    
public  voidsetWasMultiPacket(boolean flag)
    
public  StringtoString()
    
public  StringtoSuperString()
    
public  booleanwasMultiPacket()
    
final  voidwriteByte(byte b)
    
final  voidwriteBytesNoNull(byte[] bytes)
    
final  voidwriteBytesNoNull(byte[] bytes, int offset, int length)
    
final  voidwriteDouble(double d)
    
final  voidwriteFieldLength(long length)
    
final  voidwriteFloat(float f)
    
final  voidwriteInt(int i)
    
final  voidwriteLenBytes(byte[] b)
    
final  voidwriteLenString(String s, String encoding, String serverEncoding, SingleByteCharsetConverter converter, boolean parserKnowsUnicode, ConnectionImpl conn)
    
final  voidwriteLong(long i)
    
final  voidwriteLongInt(int i)
    
final  voidwriteLongLong(long i)
    
final  voidwriteString(String s)
    
final  voidwriteString(String s, String encoding, ConnectionImpl conn)
    
final  voidwriteStringNoNull(String s)
    
final  voidwriteStringNoNull(String s, String encoding, String serverEncoding, boolean parserKnowsUnicode, ConnectionImpl conn)
    

Field Detail
MAX_BYTES_TO_DUMP
final static int MAX_BYTES_TO_DUMP(Code)



NO_LENGTH_LIMIT
final static int NO_LENGTH_LIMIT(Code)



NULL_LENGTH
final static long NULL_LENGTH(Code)



wasMultiPacket
protected boolean wasMultiPacket(Code)




Constructor Detail
Buffer
Buffer(byte[] buf)(Code)



Buffer
Buffer(int size)(Code)




Method Detail
clear
final void clear()(Code)



dump
final void dump()(Code)



dump
final String dump(int numBytes)(Code)



dumpClampedBytes
final String dumpClampedBytes(int numBytes)(Code)



dumpHeader
final void dumpHeader()(Code)



dumpNBytes
final void dumpNBytes(int start, int nBytes)(Code)



ensureCapacity
final void ensureCapacity(int additionalData) throws SQLException(Code)



fastSkipLenByteArray
public void fastSkipLenByteArray()(Code)



fastSkipLenString
public int fastSkipLenString()(Code)
Skip over a length-encoded string The position past the end of the string



getBufLength
int getBufLength()(Code)



getBufferSource
final protected byte[] getBufferSource()(Code)



getByteBuffer
public byte[] getByteBuffer()(Code)
Returns the array of bytes this Buffer is using to read from. byte array being read from



getBytes
final byte[] getBytes(int len)(Code)



getBytes
byte[] getBytes(int offset, int len)(Code)



getCapacity
int getCapacity()(Code)



getNioBuffer
public ByteBuffer getNioBuffer()(Code)



getPosition
public int getPosition()(Code)
Returns the current position to write to/ read from the current position to write to/ read from



isLastDataPacket
final boolean isLastDataPacket()(Code)



newReadLength
final long newReadLength()(Code)



readByte
final byte readByte()(Code)



readByte
final byte readByte(int readAt)(Code)



readFieldLength
final long readFieldLength()(Code)



readInt
final int readInt()(Code)



readIntAsLong
final int readIntAsLong()(Code)



readLenByteArray
final byte[] readLenByteArray(int offset)(Code)



readLength
final long readLength()(Code)



readLong
final long readLong()(Code)



readLongInt
final int readLongInt()(Code)



readLongLong
final long readLongLong()(Code)



readString
final String readString()(Code)



readString
final String readString(String encoding) throws SQLException(Code)



readnBytes
final int readnBytes()(Code)



setBufLength
void setBufLength(int bufLengthToSet)(Code)



setByteBuffer
public void setByteBuffer(byte[] byteBufferToSet)(Code)
Sets the array of bytes to use as a buffer to read from.
Parameters:
  byteBuffer - the array of bytes to use as a buffer



setPosition
public void setPosition(int positionToSet)(Code)
Set the current position to write to/ read from
Parameters:
  position - the position (0-based index)



setWasMultiPacket
public void setWasMultiPacket(boolean flag)(Code)
Sets whether this packet was part of a multipacket
Parameters:
  flag - was this packet part of a multipacket?



toString
public String toString()(Code)



toSuperString
public String toSuperString()(Code)



wasMultiPacket
public boolean wasMultiPacket()(Code)
Was this packet part of a multipacket? was this packet part of a multipacket?



writeByte
final void writeByte(byte b) throws SQLException(Code)



writeBytesNoNull
final void writeBytesNoNull(byte[] bytes) throws SQLException(Code)



writeBytesNoNull
final void writeBytesNoNull(byte[] bytes, int offset, int length) throws SQLException(Code)



writeDouble
final void writeDouble(double d) throws SQLException(Code)



writeFieldLength
final void writeFieldLength(long length) throws SQLException(Code)



writeFloat
final void writeFloat(float f) throws SQLException(Code)



writeInt
final void writeInt(int i) throws SQLException(Code)



writeLenBytes
final void writeLenBytes(byte[] b) throws SQLException(Code)



writeLenString
final void writeLenString(String s, String encoding, String serverEncoding, SingleByteCharsetConverter converter, boolean parserKnowsUnicode, ConnectionImpl conn) throws UnsupportedEncodingException, SQLException(Code)



writeLong
final void writeLong(long i) throws SQLException(Code)



writeLongInt
final void writeLongInt(int i) throws SQLException(Code)



writeLongLong
final void writeLongLong(long i) throws SQLException(Code)



writeString
final void writeString(String s) throws SQLException(Code)



writeString
final void writeString(String s, String encoding, ConnectionImpl conn) throws SQLException(Code)



writeStringNoNull
final void writeStringNoNull(String s) throws SQLException(Code)



writeStringNoNull
final void writeStringNoNull(String s, String encoding, String serverEncoding, boolean parserKnowsUnicode, ConnectionImpl conn) throws UnsupportedEncodingException, SQLException(Code)



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.