-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStreamsWrapper.java
More file actions
38 lines (27 loc) · 791 Bytes
/
StreamsWrapper.java
File metadata and controls
38 lines (27 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package chat;
import org.joda.time.DateTime;
import java.io.BufferedReader;
import java.io.PrintStream;
public class StreamsWrapper {
private BufferedReader inputStreamReader;
private PrintStream outputStreamWriter;
private DateTime activeTime;
public StreamsWrapper(BufferedReader inputStream, PrintStream outputStream, DateTime activeTime) {
super();
this.inputStreamReader = inputStream;
this.outputStreamWriter = outputStream;
this.activeTime = activeTime;
}
public void setActiveTime(DateTime activeTime) {
this.activeTime = activeTime;
}
public DateTime getActiveTime() {
return activeTime;
}
public BufferedReader getInputStreamReader() {
return inputStreamReader;
}
public PrintStream getOutputStreamWriter() {
return outputStreamWriter;
}
}