48 |
* @author Andrew Selkirk |
* @author Andrew Selkirk |
49 |
* @version 1.0 |
* @version 1.0 |
50 |
*/ |
*/ |
51 |
public class ProgressMonitorInputStream extends FilterInputStream { |
public class ProgressMonitorInputStream extends FilterInputStream |
52 |
|
{ |
53 |
|
|
54 |
//------------------------------------------------------------- |
/** |
55 |
// Variables -------------------------------------------------- |
* monitor |
56 |
//------------------------------------------------------------- |
*/ |
57 |
|
private ProgressMonitor monitor; |
58 |
/** |
|
59 |
* monitor |
/** |
60 |
*/ |
* nread |
61 |
private ProgressMonitor monitor; |
*/ |
62 |
|
private int nread; |
63 |
/** |
|
64 |
* nread |
/** |
65 |
*/ |
* size |
66 |
private int nread; |
*/ |
67 |
|
private int size; |
68 |
/** |
|
69 |
* size |
/** |
70 |
*/ |
* Constructor ProgressMonitorInputStream |
71 |
private int size; |
* @param component TODO |
72 |
|
* @param message TODO |
73 |
|
* @param stream TODO |
74 |
//------------------------------------------------------------- |
*/ |
75 |
// Initialization --------------------------------------------- |
public ProgressMonitorInputStream(Component component, Object message, |
76 |
//------------------------------------------------------------- |
InputStream stream) |
77 |
|
{ |
78 |
/** |
super(stream); |
79 |
* Constructor ProgressMonitorInputStream |
// TODO |
80 |
* @param component TODO |
} |
81 |
* @param message TODO |
|
82 |
* @param stream TODO |
/** |
83 |
*/ |
* reset |
84 |
public ProgressMonitorInputStream(Component component, Object message, |
* @exception IOException TODO |
85 |
InputStream stream) { |
*/ |
86 |
super(stream); |
public synchronized void reset() throws IOException |
87 |
// TODO |
{ |
88 |
} // ProgressMonitorInputStream() |
// TODO |
89 |
|
} |
90 |
|
|
91 |
//------------------------------------------------------------- |
/** |
92 |
// Methods ---------------------------------------------------- |
* read |
93 |
//------------------------------------------------------------- |
* @exception IOException TODO |
94 |
|
* @returns int |
95 |
/** |
*/ |
96 |
* reset |
public int read() throws IOException |
97 |
* @exception IOException TODO |
{ |
98 |
*/ |
return 0; // TODO |
99 |
public synchronized void reset() throws IOException { |
} |
100 |
// TODO |
|
101 |
} // reset() |
/** |
102 |
|
* read |
103 |
/** |
* @param data TODO |
104 |
* read |
* @exception IOException TODO |
105 |
* @exception IOException TODO |
* @returns int |
106 |
* @returns int |
*/ |
107 |
*/ |
public int read(byte[] data) throws IOException |
108 |
public int read() throws IOException { |
{ |
109 |
return 0; // TODO |
return 0; // TODO |
110 |
} // read() |
} |
111 |
|
|
112 |
/** |
/** |
113 |
* read |
* read |
114 |
* @param data TODO |
* @param data TODO |
115 |
* @exception IOException TODO |
* @param offset TODO |
116 |
* @returns int |
* @param length TODO |
117 |
*/ |
* @exception IOException TODO |
118 |
public int read(byte[] data) throws IOException { |
* @returns int |
119 |
return 0; // TODO |
*/ |
120 |
} // read() |
public int read(byte[] data, int offset, int length) throws IOException |
121 |
|
{ |
122 |
/** |
return 0; // TODO |
123 |
* read |
} |
124 |
* @param data TODO |
|
125 |
* @param offset TODO |
/** |
126 |
* @param length TODO |
* skip |
127 |
* @exception IOException TODO |
* @param length TODO |
128 |
* @returns int |
* @exception IOException TODO |
129 |
*/ |
* @returns long |
130 |
public int read(byte[] data, int offset, int length) throws IOException { |
*/ |
131 |
return 0; // TODO |
public long skip(long length) throws IOException |
132 |
} // read() |
{ |
133 |
|
return 0; // TODO |
134 |
/** |
} |
135 |
* skip |
|
136 |
* @param length TODO |
/** |
137 |
* @exception IOException TODO |
* close |
138 |
* @returns long |
* @exception IOException TODO |
139 |
*/ |
*/ |
140 |
public long skip(long length) throws IOException { |
public void close() throws IOException |
141 |
return 0; // TODO |
{ |
142 |
} // skip() |
// TODO |
143 |
|
} |
144 |
/** |
|
145 |
* close |
/** |
146 |
* @exception IOException TODO |
* getProgressMonitor |
147 |
*/ |
* @returns ProgressMonitor |
148 |
public void close() throws IOException { |
*/ |
149 |
// TODO |
public ProgressMonitor getProgressMonitor() |
150 |
} // close() |
{ |
151 |
|
return null; // TODO |
152 |
/** |
} |
|
* getProgressMonitor |
|
|
* @returns ProgressMonitor |
|
|
*/ |
|
|
public ProgressMonitor getProgressMonitor() { |
|
|
return null; // TODO |
|
|
} // getProgressMonitor() |
|
153 |
|
|
154 |
|
} |
|
} // ProgressMonitorInputStream |
|