Java Doc for IBuffer.java in  » PDF » PDFClown-0.0.5 » it » stefanochizzolini » clown » bytes » 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 » PDF » PDFClown 0.0.5 » it.stefanochizzolini.clown.bytes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


it.stefanochizzolini.clown.bytes.IBuffer

All known Subclasses:   it.stefanochizzolini.clown.bytes.Buffer,
IBuffer
public interface IBuffer extends IInputStream(Code)
Buffer interface.

Its pivotal concept is the array index.





Method Summary
 voidappend(byte data)
     Appends a byte to the buffer.
 voidappend(byte[] data)
     Appends a byte array to the buffer.
 voidappend(byte[] data, int offset, int length)
     Appends a byte range to the buffer.
 voidappend(String data)
     Appends a string to the buffer.
 voidappend(IInputStream data)
     Appends an IInputStream to the buffer.
 IBufferclone()
     Gets a clone of the buffer.
 voiddecode(Filter filter)
     Applies the specified filter to decode the buffer.
 voiddelete(int index, int length)
     Deletes a byte chunk from the buffer.
 byte[]encode(Filter filter)
     Applies the specified filter to encode the buffer.
Parameters:
  filter - Filter to use for encoding the buffer.
 intgetByte(int index)
     Gets the byte at a specified location.
Parameters:
  index - A location in the buffer.
 byte[]getByteArray(int index, int length)
     Gets the byte range beginning at a specified location.
Parameters:
  index - Location at which the byte range has to begin.
Parameters:
  length - Number of bytes to copy.
 intgetCapacity()
     Gets the allocated buffer size.
 StringgetString(int index, int length)
     Gets the string beginning at a specified location.
Parameters:
  index - Location at which the string has to begin.
Parameters:
  length - Number of bytes to convert.
 voidinsert(int index, byte[] data)
     Inserts a byte array into the buffer.
 voidinsert(int index, byte[] data, int offset, int length)
     Inserts a byte range into the buffer.
 voidinsert(int index, String data)
     Inserts a string into the buffer.
 voidinsert(int index, IInputStream data)
     Inserts an IInputStream into the buffer.
 voidreplace(int index, byte[] data)
     Replaces the buffer contents with a byte array.
 voidreplace(int index, byte[] data, int offset, int length)
     Replaces the buffer contents with a byte range.
 voidreplace(int index, String data)
     Replaces the buffer contents with a string.
 voidreplace(int index, IInputStream data)
     Replaces the buffer contents with an IInputStream.
 voidsetLength(int value)
     Sets the used buffer size.
 voidwriteTo(IOutputStream stream)
     Writes the buffer data to a stream.



Method Detail
append
void append(byte data)(Code)
Appends a byte to the buffer.
Parameters:
  data - Byte to copy.



append
void append(byte[] data)(Code)
Appends a byte array to the buffer.
Parameters:
  data - Byte array to copy.



append
void append(byte[] data, int offset, int length)(Code)
Appends a byte range to the buffer.
Parameters:
  data - Byte array from which the byte range has to be copied.
Parameters:
  offset - Location in the byte array at which copying begins.
Parameters:
  length - Number of bytes to copy.



append
void append(String data)(Code)
Appends a string to the buffer.
Parameters:
  data - String to copy.



append
void append(IInputStream data)(Code)
Appends an IInputStream to the buffer.
Parameters:
  data - Source data to copy.



clone
IBuffer clone()(Code)
Gets a clone of the buffer. Deep copy of the buffer.



decode
void decode(Filter filter)(Code)
Applies the specified filter to decode the buffer.
Parameters:
  filter - Filter to use for decoding the buffer.



delete
void delete(int index, int length)(Code)
Deletes a byte chunk from the buffer.
Parameters:
  index - Location at which deletion has to begin.
Parameters:
  length - Number of bytes to delete.



encode
byte[] encode(Filter filter)(Code)
Applies the specified filter to encode the buffer.
Parameters:
  filter - Filter to use for encoding the buffer. Encoded buffer.



getByte
int getByte(int index)(Code)
Gets the byte at a specified location.
Parameters:
  index - A location in the buffer. Byte at the specified location.



getByteArray
byte[] getByteArray(int index, int length)(Code)
Gets the byte range beginning at a specified location.
Parameters:
  index - Location at which the byte range has to begin.
Parameters:
  length - Number of bytes to copy. Byte range beginning at the specified location.



getCapacity
int getCapacity()(Code)
Gets the allocated buffer size. Allocated buffer size.



getString
String getString(int index, int length)(Code)
Gets the string beginning at a specified location.
Parameters:
  index - Location at which the string has to begin.
Parameters:
  length - Number of bytes to convert. String beginning at the specified location.



insert
void insert(int index, byte[] data)(Code)
Inserts a byte array into the buffer.
Parameters:
  index - Location at which the byte array has to be inserted.
Parameters:
  data - Byte array to insert.



insert
void insert(int index, byte[] data, int offset, int length)(Code)
Inserts a byte range into the buffer.
Parameters:
  index - Location at which the byte range has to be inserted.
Parameters:
  data - Byte array from which the byte range has to be copied.
Parameters:
  offset - Location in the byte array at which copying begins.
Parameters:
  length - Number of bytes to copy.



insert
void insert(int index, String data)(Code)
Inserts a string into the buffer.
Parameters:
  index - Location at which the string has to be inserted.
Parameters:
  data - String to insert.



insert
void insert(int index, IInputStream data)(Code)
Inserts an IInputStream into the buffer.
Parameters:
  index - Location at which the IInputStream has to be inserted.
Parameters:
  data - Source data to copy.



replace
void replace(int index, byte[] data)(Code)
Replaces the buffer contents with a byte array.
Parameters:
  index - Location at which the byte array has to be copied.
Parameters:
  data - Byte array to copy.



replace
void replace(int index, byte[] data, int offset, int length)(Code)
Replaces the buffer contents with a byte range.
Parameters:
  index - Location at which the byte range has to be copied.
Parameters:
  data - Byte array from which the byte range has to be copied.
Parameters:
  offset - Location in the byte array at which copying begins.
Parameters:
  length - Number of bytes to copy.



replace
void replace(int index, String data)(Code)
Replaces the buffer contents with a string.
Parameters:
  index - Location at which the string has to be copied.
Parameters:
  data - String to copy.



replace
void replace(int index, IInputStream data)(Code)
Replaces the buffer contents with an IInputStream.
Parameters:
  index - Location at which the IInputStream has to be copied.
Parameters:
  data - Source data to copy.



setLength
void setLength(int value)(Code)
Sets the used buffer size.
Parameters:
  value - New length.



writeTo
void writeTo(IOutputStream stream)(Code)
Writes the buffer data to a stream.
Parameters:
  stream - Target stream.



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