Mercurial Hosting > luan
comparison src/org/eclipse/jetty/io/Buffer.java @ 1030:80cad9086593
remove Buffer.isVolatile()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 03 Nov 2016 01:10:09 -0600 |
parents | 4e5e9e3c25b3 |
children | 921c25a05eaa |
comparison
equal
deleted
inserted
replaced
1029:4e5e9e3c25b3 | 1030:80cad9086593 |
---|---|
44 { | 44 { |
45 public final static int | 45 public final static int |
46 IMMUTABLE=0, // neither indexes or contexts can be changed | 46 IMMUTABLE=0, // neither indexes or contexts can be changed |
47 READONLY=1, // indexes may be changed, but not content | 47 READONLY=1, // indexes may be changed, but not content |
48 READWRITE=2; // anything can be changed | 48 READWRITE=2; // anything can be changed |
49 public final boolean VOLATILE=true; // The buffer may change outside of current scope. | |
50 public final boolean NON_VOLATILE=false; | |
51 | 49 |
52 /** | 50 /** |
53 * Get the underlying array, if one exists. | 51 * Get the underlying array, if one exists. |
54 * @return a <code>byte[]</code> backing this buffer or null if none exists. | 52 * @return a <code>byte[]</code> backing this buffer or null if none exists. |
55 */ | 53 */ |
146 * read only. | 144 * read only. |
147 */ | 145 */ |
148 boolean isReadOnly(); | 146 boolean isReadOnly(); |
149 | 147 |
150 /** | 148 /** |
151 * | |
152 * @return a <code>boolean</code> value true if the buffer contents may change | |
153 * via alternate paths than this buffer. If the contents of this buffer are to be used outside of the | |
154 * current context, then a copy must be made. | |
155 */ | |
156 boolean isVolatile(); | |
157 | |
158 /** | |
159 * The number of bytes from the getIndex to the putIndex | 149 * The number of bytes from the getIndex to the putIndex |
160 * @return an <code>int</code> == putIndex()-getIndex() | 150 * @return an <code>int</code> == putIndex()-getIndex() |
161 */ | 151 */ |
162 int length(); | 152 int length(); |
163 | 153 |