IO
IO
Common
FileUtils , ,
FileSystemUtil ,
CMD /-C C: , Process, ,
. ,
LineIterator ,
BufferReader,
IOUtils
* <li>closeQuietly - these methods close a stream ignoring nulls and exceptions
* <li>toXxx/read - these methods read data from a stream
* <li>write - these methods write data to a stream
* <li>copy - these methods copy all the data from one stream to another
* <li>contentEquals - these methods compare the content of two streams
HexDump
IOCase
* This class captures that difference, providing an enumeration to
* control how filename comparisons should be performed. It also provides
* methods that use the enumeration to perform comparisons.
IOExceptionWithCause Jvava 6
~
filter
IOFileFilter java.io FileFilter, FilenameFilter( Java , JVM , )
AbstractFileFilter IOFileFilter ,
ConditionalFileFilter
FileFilterUtils ,
filter AbstractFileFilter FileFilterUtils
Filter AbstractFileFilter ;
ConditionalFileFilter , ,
AndFilterFilter OrFilterFilter filter accept
。
: Delegate , 。
WildsCard
IOCase 1 2 ,
, ,
,
FilenameUtils
, windows linuxs ,
, 。
Comparator : Comparator Serializable
DefaultFileComparator
ExtensionFileComparator
LastModifiedFileComparator file.getLastModified
NameFileComparator ~ IOCase
PathFileComparator IOCase
ReverseComparator , ,
, ( )
SizeFileComparator , FileUitls
... sumDirectoryContents
Input :]
-- -- ProxyInputStream -
-- -- ProxyReader - ~
:
CountInputStream ,
AutoCloseInputStream CloseInputStream
CloseShieldInputStream close() inputstream CloseInputStream
ClosedInputStream read() ,
TeeInputStream ,
InputStream proxy that transparently writes a copy of all bytes read
* from the proxied stream to a given OutputStream
NullInputSream ,
A functional, light weight {@link InputStream} that emulates
* a stream of a specified size.