Package io.sbk.data.impl
Class SbkString
java.lang.Object
io.sbk.data.impl.SbkString
Class for processing byte[] data.
-
Field Summary
Fields inherited from interface io.sbk.data.DataType
TIME_HEADER_BYTES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallocate
(int size) Create byte array data.create
(int size) Create byte array data and fill the random data.long
Get the time of data.int
Get minimum Write and Read Data Size.int
Get the size of the given data in terms of number of bytes for writers.Set the time for data.
-
Constructor Details
-
SbkString
public SbkString()
-
-
Method Details
-
allocate
Create byte array data. -
create
Create byte array data and fill the random data. -
length
Get the size of the given data in terms of number of bytes for writers. -
setTime
Set the time for data. -
getTime
Get the time of data.- Specified by:
getTime
in interfaceDataType<String>
- Parameters:
data
- data- Returns:
- long return the time set by last
setTime(String, long)
} )}}.
-
getWriteReadMinSize
public int getWriteReadMinSize()Description copied from interface:DataType
Get minimum Write and Read Data Size.- Specified by:
getWriteReadMinSize
in interfaceDataType<String>
- Returns:
- int minimum data size Write and Read.
-