Class/Object

org.cert.netsa.io.silk

IPSetWriter

Related Docs: object IPSetWriter | package silk

Permalink

class IPSetWriter extends AnyRef

A writer of binary SiLK IPset files.

Example:
  1. This example reads the contents of "example.set" and writes it to "copy.set":

    val in = new java.io.FileInputStream("example.set")
    val out = new java.io.FileOutputStream("copy.set")
    val ipset = IPSetReader.ofInputStream(in)
    val writer = IPSetWriter.toOutputStream(out)
    writer.append(ipset)
    writer.close()
See also

the companion object for more details

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IPSetWriter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def append[T <: IPBlock](iter: Iterator[T]): Unit

    Permalink

    Iterates over the IPBlocks and appends them to the destination stream.

    Iterates over the IPBlocks and appends them to the destination stream.

    Expects the IPBlocks in the Iterator to be in sorted order (numerically ascending).

    Expects all IPBlocks in the Iterator to be of the same size; that is, either all are IPv4Block or all are IPv6Block.

    This function may be called successfully multiple times as long as all IPBlocks have the same size and the IPBlocks across the various calls are in sorted order.

    Exceptions thrown

    java.lang.NoSuchElementException if the IPBlock Iterator contains a mix of IPv4 addresses and IPv6 addresses or the IPBlocks are not in sorted order.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close(): Unit

    Permalink

    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.

  8. val compressionMethod: CompressionMethod

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. val hadoopConfig: Option[Configuration]

    Permalink
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. val out: DataOutputStream

    Permalink
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def wasHeaderWritten: Boolean

    Permalink

    Whether any IPBlocks have been written to the stream--that is, whether the append() method has been called with a non-emtpy Iterator.

    Whether any IPBlocks have been written to the stream--that is, whether the append() method has been called with a non-emtpy Iterator.

    returns

    true once the append() method has been called

Inherited from AnyRef

Inherited from Any

Ungrouped