diff src/org/eclipse/jetty/io/View.java @ 1041:35e3c864d7a7

make View package local
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 04 Nov 2016 00:47:23 -0600
parents a7319f14ba1e
children dd71a59fcf72
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/View.java	Thu Nov 03 23:04:11 2016 -0600
+++ b/src/org/eclipse/jetty/io/View.java	Fri Nov 04 00:47:23 2016 -0600
@@ -25,45 +25,21 @@
  * 
  * 
  */
-public final class View extends AbstractBuffer
+final class View extends AbstractBuffer
 {
 	private Buffer _buffer;
 
-	/**
-	 * @param buffer The <code>Buffer</code> on which we are presenting a <code>View</code>.
-	 * @param mark The initial value of the {@link Buffer#markIndex mark index}
-	 * @param get The initial value of the {@link Buffer#getIndex get index}
-	 * @param put The initial value of the {@link Buffer#putIndex put index}
-	 * @param access The access level - one of the constants from {@link Buffer}.
-	 */
-	public View(Buffer buffer, int mark, int get, int put,int access)
+	View(Buffer buffer)
 	{
-		super(access);
-		_buffer = buffer.buffer();
-		setPutIndex(put);
-		setGetIndex(get);
-		setMarkIndex(mark);
-	}
-	
-	public View()
-	{
-		super(READWRITE);
-	}
-	
-	/**
-	 * Update view to buffer
-	 */
-	public void update(Buffer buffer)
-	{
-		_access = READWRITE;
+		super( buffer.isReadOnly()?READONLY:READWRITE );
 		_buffer = buffer.buffer();
 		setGetIndex(0);
 		setPutIndex(buffer.putIndex());
 		setGetIndex(buffer.getIndex());
 		setMarkIndex(buffer.markIndex());
-		_access = buffer.isReadOnly()?READONLY:READWRITE;
 	}
 
+
 	@Override
 	public byte[] array()
 	{