KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > cjdbc > scenario > standalone > jvm > Node


1 /*
2  * 00/08/01 @(#)Node.java 1.3 Copyright (c) 2000 Sun Microsystems, Inc. All
3  * Rights Reserved. Sun grants you ("Licensee") a non-exclusive, royalty free,
4  * license to use, modify and redistribute this software in source and binary
5  * code form, provided that i) this copyright notice and license appear on all
6  * copies of the software; and ii) Licensee does not utilize the software in a
7  * manner which is disparaging to Sun.
8  */

9
10 package org.objectweb.cjdbc.scenario.standalone.jvm;
11
12 public class Node
13 {
14   public Node m_next = null;
15   private char[] m_payload = null; ;
16   static char[] k_payload = {'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a',
17       'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a',
18       'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a',
19       'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a',
20       'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a'};
21
22   public Node()
23   {
24     m_payload = new char[64];
25     System.arraycopy(k_payload, 0, m_payload, 0, m_payload.length);
26   }
27 }
Popular Tags