class RWRecWriter extends AnyRef
A writer of binary SiLK RWRec files that are readable by SiLK.
This example reads the contents of "example.rw" and writes it to "copy.rw":
val in = new java.io.FileInputStream("example.rw") val out = new java.io.FileOutputStream("copy.rw") val reader = RWRecReader.ofInputStream(in) val writer = RWRecWriter.toOutputStream(out) writer.append(reader) writer.close()
- See also
the companion object for more details
- Alphabetic
- By Inheritance
- RWRecWriter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
append(iter: Iterator[RWRec]): Unit
Iterates over the RWRecs and appends them to the destination stream.
Iterates over the RWRecs and appends them to the destination stream. Writes the SiLK file header to the output stream on the first call to this function.
This function may be called multiple times.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
close(): Unit
Closes the output stream.
Closes the output stream.
Writes the SiLK file header to the output stream if it has not been written, writes any buffered records, closes the output stream, and releases resources.
- val compressionMethod: CompressionMethod
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val hadoopConfig: Option[Configuration]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val out: DataOutputStream
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
wasHeaderWritten: Boolean
Indicates whether the SiLK file header has been written to the output stream.
Indicates whether the SiLK file header has been written to the output stream.
- returns
trueif header has been written.