<write-binary>

Purpose/Function

Write binary values for primitives to file.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

path

java.lang.String

required

file to write to

append

boolean

false

if true, appends; else overwrites

mode

java.lang.String

"rw"

one of the options listed below for RandomAccessFile operations

Random Access Modes:
  • "rw": open for reading and writing. If the file does not already exist then an attempt will be made to create it.
  • "rws": open for reading and writing, as with "rw", and also require that every update to the file's content or metadata be written synchronously to the underlying storage device.
  • "rwd": open for reading and writing, as with "rw", and also require that every update to the file's content be written synchronously to the underlying storage device.

Elements

TAG

TYPE

COUNT

DESCRIPTION

<boolean>

java.lang.Boolean

0:N

value to add to the list

<integer>

java.lang.Integer

0:N

value to add to the list

<long>

java.lang.Long

0:N

value to add to the list

<double>

java.lang.Double

0:N

value to add to the list

<values>

java.util.ArrayList of primitive values

0:N

entire list of values to write (will be added to the main list)

ReturnValues

None.

Examples

...
<write-binary path="file.bin" mode="rwd">
    <long>-4089299943432</long>
    <values>
        <value type="double">4.2408</value>
        <value type="int">-24</value>
    <values>
</write-binary>
  • No labels