KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > util > OutputStreamEventQueueEntry


1
2 /*
3  * Enhydra Java Application Server Project
4  *
5  * The contents of this file are subject to the Enhydra Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License on
8  * the Enhydra web site ( http://www.enhydra.org/ ).
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific terms governing rights and limitations
13  * under the License.
14  *
15  * The Initial Developer of the Enhydra Application Server is Lutris
16  * Technologies, Inc. The Enhydra Application Server and portions created
17  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
18  * All Rights Reserved.
19  *
20  * Contributor(s):
21  *
22  * $Id: OutputStreamEventQueueEntry.java,v 1.1 2004/04/21 19:32:00 slobodan Exp $
23  */

24
25
26
27
28  
29 package com.lutris.util;
30
31 import java.util.Date JavaDoc;
32
33
34 /**
35     This is a helper class for OutputStreamEventQueue. It describes one
36     event (one call to write()). Only the OutputStreamEventQueue should
37     create instances of this class.
38
39     @see com.lutris.util.OutputStreamEventQueue
40     @author Andy John
41 */

42 public class OutputStreamEventQueueEntry {
43
44     /**
45         The time when the event was created (when write() was called).
46     */

47     public Date JavaDoc when;
48
49
50     /**
51         The data. This is what was written by the write() call.
52     */

53     public byte[] data;
54
55
56     /**
57         Only the OutputStreamEventQueue should create instances of this class.
58
59         @see com.lutris.util.OutputStreamEventQueue
60     */

61     protected OutputStreamEventQueueEntry() {
62     }
63
64
65     /**
66         Only the OutputStreamEventQueue should create instances of this class.
67
68         @see com.lutris.util.OutputStreamEventQueue
69     */

70     protected OutputStreamEventQueueEntry(Date JavaDoc when, byte[] data) {
71         this.when = when;
72         this.data = data;
73     }
74 }
75
76
Popular Tags