Mercurial Hosting > luan
comparison src/org/eclipse/jetty/io/Buffer.java @ 1027:6d17a257b03f
remove Buffer.asImmutableBuffer()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 02 Nov 2016 23:58:37 -0600 |
parents | 6647dbc8be71 |
children | 4e5e9e3c25b3 |
comparison
equal
deleted
inserted
replaced
1026:6647dbc8be71 | 1027:6d17a257b03f |
---|---|
72 * @return a readonly version of this <code>Buffer</code>. | 72 * @return a readonly version of this <code>Buffer</code>. |
73 */ | 73 */ |
74 Buffer asReadOnlyBuffer(); | 74 Buffer asReadOnlyBuffer(); |
75 | 75 |
76 /** | 76 /** |
77 * | |
78 * @return an immutable version of this <code>Buffer</code>. | |
79 */ | |
80 Buffer asImmutableBuffer(); | |
81 | |
82 /** | |
83 * | 77 * |
84 * The capacity of the buffer. This is the maximum putIndex that may be set. | 78 * The capacity of the buffer. This is the maximum putIndex that may be set. |
85 * @return an <code>int</code> value | 79 * @return an <code>int</code> value |
86 */ | 80 */ |
87 int capacity(); | 81 int capacity(); |
343 * @return actual number of bytes read or -1 for EOF | 337 * @return actual number of bytes read or -1 for EOF |
344 */ | 338 */ |
345 int readFrom(InputStream in, int max) throws IOException; | 339 int readFrom(InputStream in, int max) throws IOException; |
346 | 340 |
347 | 341 |
348 /* ------------------------------------------------------------ */ | |
349 String toString(String charset); | 342 String toString(String charset); |
350 | 343 |
351 /* ------------------------------------------------------------ */ | |
352 String toString(Charset charset); | 344 String toString(Charset charset); |
353 | 345 |
354 } | 346 } |