comparison src/org/eclipse/jetty/io/Buffer.java @ 1039:a7319f14ba1e

remove Buffer.isImmutable()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 22:55:28 -0600
parents b71ad168fe34
children 3e4949834f3e
comparison
equal deleted inserted replaced
1038:b71ad168fe34 1039:a7319f14ba1e
38 * markValue <= getIndex <= putIndex <= capacity 38 * markValue <= getIndex <= putIndex <= capacity
39 * 39 *
40 * 40 *
41 * @version 1.0 41 * @version 1.0
42 */ 42 */
43 public interface Buffer extends Cloneable 43 public interface Buffer
44 { 44 {
45 public final static int 45 public final static int
46 IMMUTABLE=0, // neither indexes or contexts can be changed
47 READONLY=1, // indexes may be changed, but not content 46 READONLY=1, // indexes may be changed, but not content
48 READWRITE=2; // anything can be changed 47 READWRITE=2; // anything can be changed
49 48
50 /** 49 /**
51 * Get the underlying array, if one exists. 50 * Get the underlying array, if one exists.
124 */ 123 */
125 boolean hasRemaining(); 124 boolean hasRemaining();
126 125
127 /** 126 /**
128 * 127 *
129 * @return a <code>boolean</code> value true if the buffer is immutable and that neither
130 * the buffer contents nor the indexes may be changed.
131 */
132 boolean isImmutable();
133
134 /**
135 *
136 * @return a <code>boolean</code> value true if the buffer is readonly. The buffer indexes may 128 * @return a <code>boolean</code> value true if the buffer is readonly. The buffer indexes may
137 * be modified, but the buffer contents may not. For example a View onto an immutable Buffer will be 129 * be modified, but the buffer contents may not. For example a View onto an immutable Buffer will be
138 * read only. 130 * read only.
139 */ 131 */
140 boolean isReadOnly(); 132 boolean isReadOnly();