.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullBuffer
public NullBuffer(long size)
-
Constructer.
Initialize buffer length to always 1.
- Parameters:
size
-
Buffer length
NullBuffer
public NullBuffer()
-
Default Constructer.
length
public int length()
-
Get the buffer length (always 1)
Get the buffer length. (Return always 1.)
- Returns:
-
buffer length(always 1)
write
public ReturnCode write(DataType value)
-
Write data into the buffer
Write data which were given with an argument into the buffer.
- Parameters:
value
-
Target data to write.
- Returns:
-
Result of having written in data (true:Successful, false:Failed)
read
public boolean read(DataRef<DataType> valueRef)
-
Read data from the buffer
Read data stored in the buffer.
- Parameters:
valueRef
-
Object of DataRef type to receive read data
- Returns:
-
Result of having read (true:Successful, false:Failed)
isFull
public boolean isFull()
-
Check on whether the buffer is full.
Check on whether the buffer is full. (Always false.)
- Returns:
-
Always false.
isEmpty
public boolean isEmpty()
-
Check on whether the buffer is empty.
Check on whether the buffer is empty. (Always false.)
- Returns:
-
Always false.
put
public ReturnCode put(DataType data)
-
Store data into the buffer
Store data which were given with an argument into the buffer.
- Parameters:
data
-
Target data to store.
get
public DataType get()
-
Get data from the buffer
Get data from the buffer.
- Returns:
-
Data got from buffer.
isNew
public boolean isNew()
-
Check whether the data is newest
Check whether the data stored at a current buffer position
is newest.
- Returns:
-
Newest data check result
( true:Newest data. Data has not been readout yet.
false:Past dataļ¼Data has already been readout.)
get
public ReturnCode get(DataType value)
- This function is not implemented.
- Parameters:
value
-
- Returns:
- ReturnCode
init
public void init(Properties prop)
- This function is not implemented.
- Parameters:
prop
-
reset
public ReturnCode reset()
- This function is not implemented.
- Returns:
- ReturnCode
wptr
public DataType wptr(int n)
- This function is not implemented.
- Parameters:
n
-
- Returns:
- DataType
wptr
public DataType wptr()
- This function is not implemented.
- Returns:
- DataType
advanceWptr
public ReturnCode advanceWptr(int n)
- This function is not implemented.
- Parameters:
n
-
- Returns:
- ReturnCode
advanceWptr
public ReturnCode advanceWptr()
- This function is not implemented.
- Returns:
- ReturnCode
writable
public int writable()
- This function is not implemented.
- Returns:
- int
full
public boolean full()
- This function is not implemented.
- Returns:
- boolean
rptr
public DataType rptr(int n)
- This function is not implemented.
- Parameters:
n
-
- Returns:
- DataType
rptr
public DataType rptr()
- This function is not implemented.
- Returns:
- DataType
advanceRptr
public ReturnCode advanceRptr(int n)
- This function is not implemented.
- Parameters:
n
-
- Returns:
- ReturnCode
advanceRptr
public ReturnCode advanceRptr()
- This function is not implemented.
- Returns:
- ReturnCode
readable
public int readable()
- This function is not implemented.
- Returns:
- int
empty
public boolean empty()
- This function is not implemented.
- Returns:
- boolean
length
public ReturnCode length(int n)
- This function is not implemented.
- Parameters:
n
-
- Returns:
- ReturnCode