Package org.apache.solr.common.util
Class FastWriter
java.lang.Object
java.io.Writer
org.apache.solr.common.util.FastWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Single threaded BufferedWriter Internal Solr use only, subject to change.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
sink
-
buf
protected char[] buf -
pos
protected int pos
-
-
Constructor Details
-
FastWriter
-
FastWriter
-
-
Method Details
-
wrap
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
write
- Throws:
IOException
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Throws:
IOException
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
write
- Overrides:
writein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
flush
- Throws:
IOException
-
flush
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flushBuffer
- Throws:
IOException
-