Package edu.wpi.first.networktables
Interface RawPublisher
- All Superinterfaces:
AutoCloseable
,Consumer<byte[]>
,Publisher
,PubSub
- All Known Subinterfaces:
RawEntry
NetworkTables Raw publisher.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
accept
(byte[] value) getTopic()
Get the corresponding topic.default void
set
(byte[] value) Publish a new value using current NT time.default void
set
(byte[] value, int start, int len) Publish a new value using current NT time.void
set
(byte[] value, int start, int len, long time) Publish a new value.default void
set
(byte[] value, long time) Publish a new value.default void
set
(ByteBuffer value) Publish a new value using current NT time.default void
set
(ByteBuffer value, int start, int len) Publish a new value using current NT time.void
set
(ByteBuffer value, int start, int len, long time) Publish a new value.default void
set
(ByteBuffer value, long time) Publish a new value.default void
setDefault
(byte[] value) Publish a default value.void
setDefault
(byte[] value, int start, int len) Publish a default value.default void
setDefault
(ByteBuffer value) Publish a default value.void
setDefault
(ByteBuffer value, int start, int len) Publish a default value.
-
Method Details
-
getTopic
Get the corresponding topic. -
set
Publish a new value using current NT time.- Parameters:
value
- value to publish
-
set
Publish a new value.- Parameters:
value
- value to publishtime
- timestamp; 0 indicates current NT time should be used
-
set
Publish a new value using current NT time.- Parameters:
value
- value to publishstart
- Start position of data (in buffer)len
- Length of data (must be less than or equal to value.length - start)
-
set
Publish a new value.- Parameters:
value
- value to publishstart
- Start position of data (in buffer)len
- Length of data (must be less than or equal to value.length - start)time
- timestamp; 0 indicates current NT time should be used
-
set
Publish a new value using current NT time.- Parameters:
value
- value to publish; will send from value.position() to value.limit()
-
set
Publish a new value.- Parameters:
value
- value to publish; will send from value.position() to value.limit()time
- timestamp; 0 indicates current NT time should be used
-
set
Publish a new value using current NT time.- Parameters:
value
- value to publishstart
- Start position of data (in buffer)len
- Length of data (must be less than or equal to value.capacity() - start)
-
set
Publish a new value.- Parameters:
value
- value to publishstart
- Start position of data (in buffer)len
- Length of data (must be less than or equal to value.capacity() - start)time
- timestamp; 0 indicates current NT time should be used
-
setDefault
Publish a default value. On reconnect, a default value will never be used in preference to a published value.- Parameters:
value
- value
-
setDefault
Publish a default value. On reconnect, a default value will never be used in preference to a published value.- Parameters:
value
- valuestart
- Start position of data (in buffer)len
- Length of data (must be less than or equal to value.length - start)
-
setDefault
Publish a default value. On reconnect, a default value will never be used in preference to a published value.- Parameters:
value
- value; will send from value.position() to value.limit()
-
setDefault
Publish a default value. On reconnect, a default value will never be used in preference to a published value.- Parameters:
value
- valuestart
- Start position of data (in buffer)len
- Length of data (must be less than or equal to value.capacity() - start)
-
accept
-