Class CloneableFileReader
java.lang.Object
java.io.Reader
CloneableFileReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
,Readable
Simple Cloneable File Reader to allow cloning pull parsers efficiently.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
(package private) FileReader
(package private) long
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
-
Field Details
-
freader
FileReader freader -
filename
String filename -
position
long position
-
-
Constructor Details
-
CloneableFileReader
- Throws:
FileNotFoundException
-
-
Method Details
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
read
- Specified by:
read
in classReader
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-