This file is indexed.

/usr/share/doc/libyanfs-java/api/com/sun/xfile/XFileAccessor.html is in libyanfs-java 0.0+cvs20070825-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_23) on Tue Oct 18 00:21:38 UTC 2011 -->
<TITLE>
XFileAccessor
</TITLE>

<META NAME="date" CONTENT="2011-10-18">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="XFileAccessor";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/sun/xfile/XFile.html" title="class in com.sun.xfile"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/sun/xfile/XFileExtensionAccessor.html" title="class in com.sun.xfile"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/sun/xfile/XFileAccessor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="XFileAccessor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.sun.xfile</FONT>
<BR>
Interface XFileAccessor</H2>
<DL>
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../com/sun/file/XFileAccessor.html" title="class in com.sun.file">XFileAccessor</A>, <A HREF="../../../com/sun/http/XFileAccessor.html" title="class in com.sun.http">XFileAccessor</A>, <A HREF="../../../com/sun/nfs/XFileAccessor.html" title="class in com.sun.nfs">XFileAccessor</A>, <A HREF="../../../com/sun/zip/XFileAccessor.html" title="class in com.sun.zip">XFileAccessor</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public interface <B>XFileAccessor</B></DL>
</PRE>

<P>
The XFileAccessor interface is implemented by filesystems that
 need to be accessed via the XFile API.

 Classes that implement this interface must be associated
 with a URL scheme that is structured according to the
 Common Internet Scheme syntax described in
 <a href=http://ds.internic.net/rfc/rfc1738.txt>RFC 1738</a>;
 an optional location part followed by a hierarchical set
 of slash separated directories.
 <p>
 A class file that implements this interface must be named
 "XFileAccessor" and be installed in a directory named after
 the URL scheme that it implements, for instance, an XFileAccessor
 that provides file access through the HTTP protocol would be
 associated with the "http" URL and its class file would be
 called:
 <p><blockquote><code>
        http.XFileAccessor
 </code></blockquote><p>
 A class prefix is added to this name.  The default prefix is
 <code>com.sun</code> and this composite name is located by the
 classLoader via the CLASSPATH.
 For instance, Sun's "nfs" XFileAccessor is installed as:
 <p><blockquote><code>
        com.sun.nfs.XFileAccessor
 </code></blockquote><p>
 The default class prefix <code>com.sun</code> can be changed by
 setting the System property <b><code>java.protocol.xfile</code></b>
 to any desired prefix or a list of prefixes separated by
 vertical bars. Each prefix in the list will be used to
 construct a package name and the classLoader will attempt
 to load that package via the CLASSPATH.  This process will
 continue until the XFileAccessor is successfully loaded.
 <p>
 For instance, if you want to use the "ftp"
 XFileAccessor from Acme, Inc and the "nfs" XFileAccessor
 from "ABC Inc." then you can set the system property as
 follows:
 <p><blockquote><code>
        <b>java.protocol.xfile=com.acme|com.abc</b>
 </code></blockquote>
 When an "ftp" URL is used, the following package names will
 be constructed:
 <code<blockquote><pre>
    com.acme.ftp.XFileAccessor
    com.abc.ftp.XFileAccessor
    com.sun.ftp.XFileAccessor
 </pre></blockquote></code>
 (the default "com.sun" prefix is automatically added to
 the end of the property list)
 <p>
 The class loader attempts to load each of the constructed
 package names in turn relative to the CLASSPATH until it is
 successful.
 <p>
 A subsequent reference to an "nfs" URL will result in
 the following list of candidate package names:
 <code<blockquote><pre>
    com.acme.nfs.XFileAccessor
    com.abc.nfs.XFileAccessor
    com.sun.nfs.XFileAccessor
 </pre></blockquote></code>
 In this case the "nfs" XFileAccessor from ABC, Inc. will
 be loaded in preference to Sun's NFS.
<P>

<P>
<DL>
<DT><B>Version:</B></DT>
  <DD>1.0, 04/08/98</DD>
<DT><B>Author:</B></DT>
  <DD>Brent Callaghan</DD>
<DT><B>See Also:</B><DD><A HREF="../../../com/sun/xfile/XFile.html" title="class in com.sun.xfile"><CODE>XFile</CODE></A></DL>
<HR>

<P>

<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#canRead()">canRead</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests if the application can read from the specified file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#canWrite()">canWrite</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests if the application can write to this file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#close()">close</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Close the file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#delete()">delete</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deletes the file specified by this object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#exists()">exists</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests if this XFile object exists.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#flush()">flush</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forces any buffered output bytes to be written out.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../com/sun/xfile/XFile.html" title="class in com.sun.xfile">XFile</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#getXFile()">getXFile</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the XFile for this Accessor</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#isDirectory()">isDirectory</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests if the file represented by this XFileAccessor
 object is a directory.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#isFile()">isFile</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests if the file represented by this
 object is a "normal" file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#lastModified()">lastModified</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the time that the file represented by this 
 <code>XFile</code> object was last modified.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#length()">length</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the length of the file represented by this 
 XFileAccessor object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#list()">list</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list of the files in the directory specified by
 this XFileAccessor object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#mkdir()">mkdir</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a directory whose pathname is specified by this 
 XFileAccessor object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#mkfile()">mkfile</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an empty file whose pathname is specified by this 
 XFileAccessor object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#open(com.sun.xfile.XFile, boolean, boolean)">open</A></B>(<A HREF="../../../com/sun/xfile/XFile.html" title="class in com.sun.xfile">XFile</A>&nbsp;xf,
     boolean&nbsp;serial,
     boolean&nbsp;readOnly)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open a file in this filesystem.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#read(byte[], int, int, long)">read</A></B>(byte[]&nbsp;b,
     int&nbsp;off,
     int&nbsp;len,
     long&nbsp;foff)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a subarray as a sequence of bytes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#renameTo(com.sun.xfile.XFile)">renameTo</A></B>(<A HREF="../../../com/sun/xfile/XFile.html" title="class in com.sun.xfile">XFile</A>&nbsp;dest)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renames the file specified by this XFileAccessor object to 
 have the pathname given by the XFileAccessor object argument.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/xfile/XFileAccessor.html#write(byte[], int, int, long)">write</A></B>(byte[]&nbsp;b,
      int&nbsp;off,
      int&nbsp;len,
      long&nbsp;foff)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes a sub array as a sequence of bytes.</TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="open(com.sun.xfile.XFile, boolean, boolean)"><!-- --></A><H3>
open</H3>
<PRE>
boolean <B>open</B>(<A HREF="../../../com/sun/xfile/XFile.html" title="class in com.sun.xfile">XFile</A>&nbsp;xf,
             boolean&nbsp;serial,
             boolean&nbsp;readOnly)</PRE>
<DL>
<DD>Open a file in this filesystem.

 This method is called before any other method.
 It may be used to open the <i>real</i> file.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>xf</CODE> - The XFile for the file to be accessed
                The URL will be of the form
                <p>
                    &lt;proto&gt;://&lt;location&gt;/&lt;path&gt;
                <p>
                where &lt;proto&gt; is the name of the filesystem,
                e.g. "nfs" and &lt;location&gt; is the location of
                the filesystem.  For nfs this is the network name of
                a server.  The &lt;path&gt; is a pathname that locates
                the file within &lt;location&gt;. As required by
                RFC 1738, the component delimiters in the pathname
                are as for URL syntax: forward slashes only.<DD><CODE>serial</CODE> - true if serial access; false if random access<DD><CODE>readOnly</CODE> - true if read only; false if read/write</DL>
</DD>
</DL>
<HR>

<A NAME="getXFile()"><!-- --></A><H3>
getXFile</H3>
<PRE>
<A HREF="../../../com/sun/xfile/XFile.html" title="class in com.sun.xfile">XFile</A> <B>getXFile</B>()</PRE>
<DL>
<DD>Return the XFile for this Accessor
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="exists()"><!-- --></A><H3>
exists</H3>
<PRE>
boolean <B>exists</B>()</PRE>
<DL>
<DD>Tests if this XFile object exists.
<P>
<DD><DL>

<DT><B>Returns:</B><DD><code>true</code> if the file specified by this object
         exists; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="canWrite()"><!-- --></A><H3>
canWrite</H3>
<PRE>
boolean <B>canWrite</B>()</PRE>
<DL>
<DD>Tests if the application can write to this file.
<P>
<DD><DL>

<DT><B>Returns:</B><DD><code>true</code> if the application is allowed to
         write to a file whose name is specified by this
         object; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="canRead()"><!-- --></A><H3>
canRead</H3>
<PRE>
boolean <B>canRead</B>()</PRE>
<DL>
<DD>Tests if the application can read from the specified file.
<P>
<DD><DL>

<DT><B>Returns:</B><DD><code>true</code> if the file specified by this
         object exists and the application can read the file;
         <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="isFile()"><!-- --></A><H3>
isFile</H3>
<PRE>
boolean <B>isFile</B>()</PRE>
<DL>
<DD>Tests if the file represented by this
 object is a "normal" file. 
 <p>
 A file is "normal" if it is not a directory and, in 
 addition, satisfies other system-dependent criteria. Any 
 non-directory file created by a Java application is
 guaranteed to be a normal file.
<P>
<DD><DL>

<DT><B>Returns:</B><DD><code>true</code> if the file specified by this
         object exists and is a "normal"
         file; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="isDirectory()"><!-- --></A><H3>
isDirectory</H3>
<PRE>
boolean <B>isDirectory</B>()</PRE>
<DL>
<DD>Tests if the file represented by this XFileAccessor
 object is a directory.
<P>
<DD><DL>

<DT><B>Returns:</B><DD><code>true</code> if this XFileAccessor object
         exists and is a directory; <code>false</code>
         otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="lastModified()"><!-- --></A><H3>
lastModified</H3>
<PRE>
long <B>lastModified</B>()</PRE>
<DL>
<DD>Returns the time that the file represented by this 
 <code>XFile</code> object was last modified. 
 It is measured as the time in milliseconds since
 midnight, January 1, 1970 UTC.
 <p>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the time the file specified by this object was last
         modified, or <code>0L</code> if the specified file
         does not exist.</DL>
</DD>
</DL>
<HR>

<A NAME="length()"><!-- --></A><H3>
length</H3>
<PRE>
long <B>length</B>()</PRE>
<DL>
<DD>Returns the length of the file represented by this 
 XFileAccessor object.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the length, in bytes, of the file specified by
         this object, or <code>0L</code> if the specified
         file does not exist.</DL>
</DD>
</DL>
<HR>

<A NAME="mkfile()"><!-- --></A><H3>
mkfile</H3>
<PRE>
boolean <B>mkfile</B>()</PRE>
<DL>
<DD>Creates an empty file whose pathname is specified by this 
 XFileAccessor object.
<P>
<DD><DL>

<DT><B>Returns:</B><DD><code>true</code> if the file was created;
         <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="mkdir()"><!-- --></A><H3>
mkdir</H3>
<PRE>
boolean <B>mkdir</B>()</PRE>
<DL>
<DD>Creates a directory whose pathname is specified by this 
 XFileAccessor object.
<P>
<DD><DL>

<DT><B>Returns:</B><DD><code>true</code> if the directory could be created;
         <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="renameTo(com.sun.xfile.XFile)"><!-- --></A><H3>
renameTo</H3>
<PRE>
boolean <B>renameTo</B>(<A HREF="../../../com/sun/xfile/XFile.html" title="class in com.sun.xfile">XFile</A>&nbsp;dest)</PRE>
<DL>
<DD>Renames the file specified by this XFileAccessor object to 
 have the pathname given by the XFileAccessor object argument. 

 The destination XFile object will be of the same URL
 scheme as this object. The change of name must not
 affect the existence or accessibility of this object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>dest</CODE> - the new filename.
<DT><B>Returns:</B><DD><code>true</code> if the renaming succeeds;
         <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="delete()"><!-- --></A><H3>
delete</H3>
<PRE>
boolean <B>delete</B>()</PRE>
<DL>
<DD>Deletes the file specified by this object.  If the target
 file to be deleted is a directory, it must be empty for deletion
 to succeed.
<P>
<DD><DL>

<DT><B>Returns:</B><DD><code>true</code> if the file is successfully deleted;
             <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="list()"><!-- --></A><H3>
list</H3>
<PRE>
java.lang.String[] <B>list</B>()</PRE>
<DL>
<DD>Returns a list of the files in the directory specified by
 this XFileAccessor object.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>an array of file names in the specified directory.
         This list does not include the current directory or
         the parent directory ("<code>.</code>" and
         "<code>..</code>" on Unix systems).</DL>
</DD>
</DL>
<HR>

<A NAME="read(byte[], int, int, long)"><!-- --></A><H3>
read</H3>
<PRE>
int <B>read</B>(byte[]&nbsp;b,
         int&nbsp;off,
         int&nbsp;len,
         long&nbsp;foff)
         throws java.io.IOException</PRE>
<DL>
<DD>Reads a subarray as a sequence of bytes.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - the buffer into which the data is read<DD><CODE>off</CODE> - the start offset in the data buffer<DD><CODE>len</CODE> - the maximum number of bytes to be read<DD><CODE>foff</CODE> - the offset into the file
<DT><B>Returns:</B><DD>number of bytes read - zero if none.
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - If an I/O error has occurred.</DL>
</DD>
</DL>
<HR>

<A NAME="write(byte[], int, int, long)"><!-- --></A><H3>
write</H3>
<PRE>
void <B>write</B>(byte[]&nbsp;b,
           int&nbsp;off,
           int&nbsp;len,
           long&nbsp;foff)
           throws java.io.IOException</PRE>
<DL>
<DD>Writes a sub array as a sequence of bytes.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>b</CODE> - the data to be written<DD><CODE>off</CODE> - the start offset in the data in the buffer<DD><CODE>len</CODE> - the number of bytes that are written<DD><CODE>foff</CODE> - the offset into the file
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - If an I/O error has occurred.</DL>
</DD>
</DL>
<HR>

<A NAME="flush()"><!-- --></A><H3>
flush</H3>
<PRE>
void <B>flush</B>()
           throws java.io.IOException</PRE>
<DL>
<DD>Forces any buffered output bytes to be written out. 
 <p>
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - if an I/O error occurs.</DL>
</DD>
</DL>
<HR>

<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
void <B>close</B>()
           throws java.io.IOException</PRE>
<DL>
<DD>Close the file.

 Closes this file and releases any system resources 
 associated with the file.

 After the file is closed further I/O operations may
 throw IOException.
<P>
<DD><DL>

<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - If an I/O error has occurred.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/sun/xfile/XFile.html" title="class in com.sun.xfile"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/sun/xfile/XFileExtensionAccessor.html" title="class in com.sun.xfile"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?com/sun/xfile/XFileAccessor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="XFileAccessor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>