public class AisDirectoryReader extends AisReader
If recursive used all sub directories will also be scanned using depth first.
Default ordering is by full path names. A Comparator<Path> can be provided for alternative ordering.
AisReader.StatusThread.State, Thread.UncaughtExceptionHandlerhandlers, packetHandlers, sendThreadPoolMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier and Type | Method and Description |
|---|---|
float |
getEstimatedFractionOfPacketsRead()
Compute an estimate of the fraction of AIS packets which have been read, out of the total no. of AIS packets to read in the
matching files.
|
AisReader.Status |
getStatus()
Get the status of the connection, either connected or disconnected
|
void |
run() |
void |
send(SendRequest sendRequest,
Consumer<Abk> resultListener)
Method to send addressed or broadcast AIS messages (ABM or BBM).
|
distribute, doSend, getNumberOfBytesRead, getNumberOfBytesWritten, getNumberOfLinesRead, getSourceId, isShutdown, readLoop, registerHandler, registerPacketHandler, registerQueue, registerQueueHandler, send, send, setSourceId, stopReader, streamactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic AisReader.Status getStatus()
AisReaderpublic void send(SendRequest sendRequest, Consumer<Abk> resultListener) throws SendException
AisReadersend in class AisReadersendRequest - the send requestresultListener - A class to handle the result when it is ready.SendException - the send exceptionpublic float getEstimatedFractionOfPacketsRead()
Copyright © 2011–2019 Danish Maritime Authority. All rights reserved.