css: some padding and margin fixes
[openafs-wiki.git] / JavaAdminAPI / FileOutputStream.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc on Mon Jun 09 15:53:37 PDT 2003 -->
6 <TITLE>
7 FileOutputStream (Java AFS API)
8 </TITLE>
9 <META NAME="keywords" CONTENT="org.openafs.jafs.FileOutputStream,FileOutputStream class">
10 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
11 </HEAD>
12 <SCRIPT>
13 function asd()
14 {
15 parent.document.title="FileOutputStream (Java AFS API)";
16 }
17 </SCRIPT>
18 <BODY BGCOLOR="white" onload="asd();">
19
20 <!-- ========== START OF NAVBAR ========== -->
21 <A NAME="navbar_top"><!-- --></A>
22 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
23 <TR>
24 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
25 <A NAME="navbar_top_firstrow"><!-- --></A>
26 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
27   <TR ALIGN="center" VALIGN="top">
28   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
29   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
30   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/FileOutputStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
31   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
32   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
33   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
34   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
35   </TR>
36 </TABLE>
37 </TD>
38 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
39 <B>JAFS API v2</B></EM>
40 </TD>
41 </TR>
42
43 <TR>
44 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
45 &nbsp;<A HREF="../../../org/openafs/jafs/FileInputStream.html"><B>PREV CLASS</B></A>&nbsp;
46 &nbsp;<A HREF="../../../org/openafs/jafs/Group.html"><B>NEXT CLASS</B></A></FONT></TD>
47 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
48   <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
49 &nbsp;<A HREF="FileOutputStream.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
50 &nbsp;
51 <SCRIPT>
52   <!--
53   if(window==top) {
54     document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
55   }
56   //-->
57 </SCRIPT>
58 <NOSCRIPT>
59 <A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
60 </NOSCRIPT>
61 </FONT></TD>
62 </TR>
63 <TR>
64 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
65   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
66 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
67 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
68 </TR>
69 </TABLE>
70 <!-- =========== END OF NAVBAR =========== -->
71
72 <HR>
73 <!-- ======== START OF CLASS DATA ======== -->
74 <H2>
75 <FONT SIZE="-1">
76 org.openafs.jafs</FONT>
77 <BR>
78 Class FileOutputStream</H2>
79 <PRE>
80 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html">java.lang.Object</A>
81   |
82   +--<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html">java.io.OutputStream</A>
83         |
84         +--<B>org.openafs.jafs.FileOutputStream</B>
85 </PRE>
86 <HR>
87 <DL>
88 <DT>public class <B>FileOutputStream</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html">OutputStream</A></DL>
89
90 <P>
91 This class is a file output stream for files within AFS.  
92  It is an output stream for writing data to a 
93  <code><A HREF="../../../org/openafs/jafs/File.html"><CODE>File</CODE></A></code>.
94 <P>
95
96 <P>
97 <DL>
98 <DT><B>Version:</B></DT>
99   <DD>2.1, 08/03/2001</DD>
100 <DT><B>See Also:</B><DD><A HREF="../../../org/openafs/jafs/File.html"><CODE>File</CODE></A>, 
101 <A HREF="../../../org/openafs/jafs/FileInputStream.html"><CODE>FileInputStream</CODE></A>, 
102 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/FileOutputStream.html"><CODE>FileOutputStream</CODE></A></DL>
103 <HR>
104
105 <P>
106 <!-- ======== NESTED CLASS SUMMARY ======== -->
107
108
109 <!-- =========== FIELD SUMMARY =========== -->
110
111
112 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
113
114 <A NAME="constructor_summary"><!-- --></A>
115 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
116 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
117 <TD COLSPAN=2><FONT SIZE="+2">
118 <B>Constructor Summary</B></FONT></TD>
119 </TR>
120 <TR BGCOLOR="white" CLASS="TableRowColor">
121 <TD><CODE><B><A HREF="../../../org/openafs/jafs/FileOutputStream.html#FileOutputStream(org.openafs.jafs.File)">FileOutputStream</A></B>(<A HREF="../../../org/openafs/jafs/File.html">File</A>&nbsp;file)</CODE>
122
123 <BR>
124 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a file output stream to write to the AFS file represented by 
125  the specified <code>File</code> object.
126  </TD>
127 </TR>
128 <TR BGCOLOR="white" CLASS="TableRowColor">
129 <TD><CODE><B><A HREF="../../../org/openafs/jafs/FileOutputStream.html#FileOutputStream(org.openafs.jafs.File, boolean)">FileOutputStream</A></B>(<A HREF="../../../org/openafs/jafs/File.html">File</A>&nbsp;file,
130                  boolean&nbsp;append)</CODE>
131
132 <BR>
133 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a file output stream to write to the AFS file represented by 
134  the specified <code>File</code> object.
135  </TD>
136 </TR>
137 <TR BGCOLOR="white" CLASS="TableRowColor">
138 <TD><CODE><B><A HREF="../../../org/openafs/jafs/FileOutputStream.html#FileOutputStream(java.lang.String)">FileOutputStream</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A>&nbsp;name)</CODE>
139
140 <BR>
141 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an output file stream to write to the AFS file with the 
142  specified name.
143  </TD>
144 </TR>
145 <TR BGCOLOR="white" CLASS="TableRowColor">
146 <TD><CODE><B><A HREF="../../../org/openafs/jafs/FileOutputStream.html#FileOutputStream(java.lang.String, boolean)">FileOutputStream</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A>&nbsp;name,
147                  boolean&nbsp;append)</CODE>
148
149 <BR>
150 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an output file stream to write to the AFS file with the specified
151  <code>name</code>.  </TD>
152 </TR>
153 </TABLE>
154 &nbsp;
155 <!-- ========== METHOD SUMMARY =========== -->
156
157 <A NAME="method_summary"><!-- --></A>
158 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
159 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
160 <TD COLSPAN=2><FONT SIZE="+2">
161 <B>Method Summary</B></FONT></TD>
162 </TR>
163 <TR BGCOLOR="white" CLASS="TableRowColor">
164 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165 <CODE>&nbsp;void</CODE></FONT></TD>
166 <TD><CODE><B><A HREF="../../../org/openafs/jafs/FileOutputStream.html#close()">close</A></B>()</CODE>
167
168 <BR>
169 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Closes this file output stream and releases any system resources 
170  associated with this stream. </TD>
171 </TR>
172 <TR BGCOLOR="white" CLASS="TableRowColor">
173 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174 <CODE>&nbsp;void</CODE></FONT></TD>
175 <TD><CODE><B><A HREF="../../../org/openafs/jafs/FileOutputStream.html#write(byte[])">write</A></B>(byte[]&nbsp;b)</CODE>
176
177 <BR>
178 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes <code>b.length</code> bytes from the specified byte array 
179  to this file output stream. 
180  </TD>
181 </TR>
182 <TR BGCOLOR="white" CLASS="TableRowColor">
183 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184 <CODE>&nbsp;void</CODE></FONT></TD>
185 <TD><CODE><B><A HREF="../../../org/openafs/jafs/FileOutputStream.html#write(byte[], int, int)">write</A></B>(byte[]&nbsp;b,
186       int&nbsp;off,
187       int&nbsp;len)</CODE>
188
189 <BR>
190 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes <code>len</code> bytes from the specified 
191  <code>byte</code> array starting at offset <code>off</code> to 
192  this file output stream.</TD>
193 </TR>
194 <TR BGCOLOR="white" CLASS="TableRowColor">
195 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
196 <CODE>&nbsp;void</CODE></FONT></TD>
197 <TD><CODE><B><A HREF="../../../org/openafs/jafs/FileOutputStream.html#write(int)">write</A></B>(int&nbsp;b)</CODE>
198
199 <BR>
200 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the specified <code>byte</code> to this file output stream. 
201  </TD>
202 </TR>
203 </TABLE>
204 &nbsp;<A NAME="methods_inherited_from_class_java.io.OutputStream"><!-- --></A>
205 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
206 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
207 <TD><B>Methods inherited from class java.io.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html">OutputStream</A></B></TD>
208 </TR>
209 <TR BGCOLOR="white" CLASS="TableRowColor">
210 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html#flush()">flush</A></CODE></TD>
211 </TR>
212 </TABLE>
213 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
214 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
215 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
216 <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html">Object</A></B></TD>
217 </TR>
218 <TR BGCOLOR="white" CLASS="TableRowColor">
219 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD>
220 </TR>
221 </TABLE>
222 &nbsp;
223 <P>
224
225 <!-- ============ FIELD DETAIL =========== -->
226
227
228 <!-- ========= CONSTRUCTOR DETAIL ======== -->
229
230 <A NAME="constructor_detail"><!-- --></A>
231 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
232 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
233 <TD COLSPAN=1><FONT SIZE="+2">
234 <B>Constructor Detail</B></FONT></TD>
235 </TR>
236 </TABLE>
237
238 <A NAME="FileOutputStream(java.lang.String)"><!-- --></A><H3>
239 FileOutputStream</H3>
240 <PRE>
241 public <B>FileOutputStream</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A>&nbsp;name)
242                  throws <A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></PRE>
243 <DL>
244 <DD>Creates an output file stream to write to the AFS file with the 
245  specified name.
246  <p>
247  If the file exists but is a directory rather than a regular file, does
248  not exist but cannot be created, or cannot be opened for any other
249  reason then a <code>AFSFileException</code> is thrown.
250 <P>
251 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the file to write to
252 <DT><B>Throws:</B>
253 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></CODE> - If an AFS specific error occurs, 
254                         if the file exists but is a directory
255                         rather than a regular file, does not exist but cannot
256                         be created, or cannot be opened for any other reason, including
257                         authorization.</DL>
258 <HR>
259
260 <A NAME="FileOutputStream(java.lang.String, boolean)"><!-- --></A><H3>
261 FileOutputStream</H3>
262 <PRE>
263 public <B>FileOutputStream</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html">String</A>&nbsp;name,
264                         boolean&nbsp;append)
265                  throws <A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></PRE>
266 <DL>
267 <DD>Creates an output file stream to write to the AFS file with the specified
268  <code>name</code>.  If the second argument is <code>true</code>, then
269  bytes will be written to the end of the file rather than the beginning.
270  <p>
271  If the file exists but is a directory rather than a regular file, does
272  not exist but cannot be created, or cannot be opened for any other
273  reason then a <code>AFSFileException</code> is thrown.
274 <P>
275 <DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the file to write to<DD><CODE>append</CODE> - if <code>true</code>, then bytes will be written
276                                 to the end of the file rather than the beginning
277 <DT><B>Throws:</B>
278 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></CODE> - If an AFS specific error occurs, 
279                         if the file exists but is a directory
280                         rather than a regular file, does not exist but cannot
281                         be created, or cannot be opened for any other reason, including
282                         authorization.</DL>
283 <HR>
284
285 <A NAME="FileOutputStream(org.openafs.jafs.File)"><!-- --></A><H3>
286 FileOutputStream</H3>
287 <PRE>
288 public <B>FileOutputStream</B>(<A HREF="../../../org/openafs/jafs/File.html">File</A>&nbsp;file)
289                  throws <A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></PRE>
290 <DL>
291 <DD>Creates a file output stream to write to the AFS file represented by 
292  the specified <code>File</code> object.
293  <p>
294  If the file exists but is a directory rather than a regular file, does
295  not exist but cannot be created, or cannot be opened for any other
296  reason then a <code>AFSFileException</code> is thrown.
297 <P>
298 <DT><B>Parameters:</B><DD><CODE>file</CODE> - the AFS file to be opened for writing.
299 <DT><B>Throws:</B>
300 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></CODE> - If an AFS specific error occurs, 
301                         if the file exists but is a directory
302                         rather than a regular file, does not exist but cannot
303                         be created, or cannot be opened for any other reason, including
304                         authorization.<DT><B>See Also:</B><DD><CODE>File.getPath()</CODE></DL>
305 <HR>
306
307 <A NAME="FileOutputStream(org.openafs.jafs.File, boolean)"><!-- --></A><H3>
308 FileOutputStream</H3>
309 <PRE>
310 public <B>FileOutputStream</B>(<A HREF="../../../org/openafs/jafs/File.html">File</A>&nbsp;file,
311                         boolean&nbsp;append)
312                  throws <A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></PRE>
313 <DL>
314 <DD>Creates a file output stream to write to the AFS file represented by 
315  the specified <code>File</code> object.
316  <p>
317  If the file exists but is a directory rather than a regular file, does
318  not exist but cannot be created, or cannot be opened for any other
319  reason then a <code>AFSFileException</code> is thrown.
320 <P>
321 <DT><B>Parameters:</B><DD><CODE>file</CODE> - the AFS file to be opened for writing.<DD><CODE>append</CODE> - if <code>true</code>, then bytes will be written
322                                 to the end of the file rather than the beginning
323 <DT><B>Throws:</B>
324 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></CODE> - If an AFS specific error occurs, 
325                         if the file exists but is a directory
326                         rather than a regular file, does not exist but cannot
327                         be created, or cannot be opened for any other reason, including
328                         authorization.<DT><B>See Also:</B><DD><CODE>File.getPath()</CODE></DL>
329
330 <!-- ============ METHOD DETAIL ========== -->
331
332 <A NAME="method_detail"><!-- --></A>
333 <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
334 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
335 <TD COLSPAN=1><FONT SIZE="+2">
336 <B>Method Detail</B></FONT></TD>
337 </TR>
338 </TABLE>
339
340 <A NAME="write(int)"><!-- --></A><H3>
341 write</H3>
342 <PRE>
343 public void <B>write</B>(int&nbsp;b)
344            throws <A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></PRE>
345 <DL>
346 <DD>Writes the specified <code>byte</code> to this file output stream. 
347  <p>
348  Implements the abstract <tt>write</tt> method of <tt>OutputStream</tt>.
349 <P>
350 <DD><DL>
351 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html#write(int)">write</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html">OutputStream</A></CODE></DL>
352 </DD>
353 <DD><DL>
354 <DT><B>Parameters:</B><DD><CODE>b</CODE> - the byte to be written.
355 <DT><B>Throws:</B>
356 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></CODE> - if an error occurs.</DL>
357 </DD>
358 </DL>
359 <HR>
360
361 <A NAME="write(byte[])"><!-- --></A><H3>
362 write</H3>
363 <PRE>
364 public void <B>write</B>(byte[]&nbsp;b)
365            throws <A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></PRE>
366 <DL>
367 <DD>Writes <code>b.length</code> bytes from the specified byte array 
368  to this file output stream. 
369  <p>
370  Implements the <code>write</code> method of three arguments with the 
371  arguments <code>b</code>, <code>0</code>, and 
372  <code>b.length</code>. 
373  <p>
374  Note that this method does not call the one-argument 
375  <code>write</code> method of its underlying stream with the single 
376  argument <code>b</code>.
377 <P>
378 <DD><DL>
379 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html#write(byte[])">write</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html">OutputStream</A></CODE></DL>
380 </DD>
381 <DD><DL>
382 <DT><B>Parameters:</B><DD><CODE>b</CODE> - the data to be written.
383 <DT><B>Throws:</B>
384 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></CODE> - if an error occurs.<DT><B>See Also:</B><DD><A HREF="../../../org/openafs/jafs/FileOutputStream.html#write(byte[], int, int)"><CODE>write(byte[], int, int)</CODE></A>, 
385 <CODE>FilterOutputStream.write(byte[], int, int)</CODE></DL>
386 </DD>
387 </DL>
388 <HR>
389
390 <A NAME="write(byte[], int, int)"><!-- --></A><H3>
391 write</H3>
392 <PRE>
393 public void <B>write</B>(byte[]&nbsp;b,
394                   int&nbsp;off,
395                   int&nbsp;len)
396            throws <A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></PRE>
397 <DL>
398 <DD>Writes <code>len</code> bytes from the specified 
399  <code>byte</code> array starting at offset <code>off</code> to 
400  this file output stream.
401 <P>
402 <DD><DL>
403 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html#write(byte[], int, int)">write</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html">OutputStream</A></CODE></DL>
404 </DD>
405 <DD><DL>
406 <DT><B>Parameters:</B><DD><CODE>b</CODE> - the data to be written<DD><CODE>off</CODE> - the start offset in the data<DD><CODE>len</CODE> - the number of bytes that are written
407 <DT><B>Throws:</B>
408 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></CODE> - if an I/O or other file related error occurs.<DT><B>See Also:</B><DD><CODE>FilterOutputStream.write(int)</CODE></DL>
409 </DD>
410 </DL>
411 <HR>
412
413 <A NAME="close()"><!-- --></A><H3>
414 close</H3>
415 <PRE>
416 public void <B>close</B>()
417            throws <A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></PRE>
418 <DL>
419 <DD>Closes this file output stream and releases any system resources 
420  associated with this stream. This file output stream may no longer 
421  be used for writing bytes.
422 <P>
423 <DD><DL>
424 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html#close()">close</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html">OutputStream</A></CODE></DL>
425 </DD>
426 <DD><DL>
427
428 <DT><B>Throws:</B>
429 <DD><CODE><A HREF="../../../org/openafs/jafs/AFSFileException.html">AFSFileException</A></CODE> - if an I/O or other file related error occurs.</DL>
430 </DD>
431 </DL>
432 <!-- ========= END OF CLASS DATA ========= -->
433 <HR>
434
435 <!-- ========== START OF NAVBAR ========== -->
436 <A NAME="navbar_bottom"><!-- --></A>
437 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
438 <TR>
439 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
440 <A NAME="navbar_bottom_firstrow"><!-- --></A>
441 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
442   <TR ALIGN="center" VALIGN="top">
443   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
444   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
445   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/FileOutputStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
446   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
447   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
448   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
449   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
450   </TR>
451 </TABLE>
452 </TD>
453 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
454 <B>JAFS API v2</B></EM>
455 </TD>
456 </TR>
457
458 <TR>
459 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
460 &nbsp;<A HREF="../../../org/openafs/jafs/FileInputStream.html"><B>PREV CLASS</B></A>&nbsp;
461 &nbsp;<A HREF="../../../org/openafs/jafs/Group.html"><B>NEXT CLASS</B></A></FONT></TD>
462 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
463   <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
464 &nbsp;<A HREF="FileOutputStream.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
465 &nbsp;
466 <SCRIPT>
467   <!--
468   if(window==top) {
469     document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
470   }
471   //-->
472 </SCRIPT>
473 <NOSCRIPT>
474 <A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
475 </NOSCRIPT>
476 </FONT></TD>
477 </TR>
478 <TR>
479 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
480   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
481 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
482 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
483 </TR>
484 </TABLE>
485 <!-- =========== END OF NAVBAR =========== -->
486
487 <HR>
488
489 </BODY>
490 </HTML>