FileDocCategorySizeDatePackage
BufferWrap.javaAPI DocExample515Sat Jan 05 15:19:36 GMT 2002com.ronsoft.books.nio.buffers

BufferWrap

public class BufferWrap extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

		CharBuffer cb = CharBuffer.allocate (100);

		cb.put ("This is a test String");

		cb.flip();

		System.out.println ("hasArray() = " + cb.hasArray());

		char [] carray = cb.array();

		System.out.print ("array=");

		for (int i = 0; i < carray.length; i++) {
			System.out.print (carray [i]);
		}

		System.out.println ("");
		System.out.flush();