public static class RefAdvertiser.PacketLineOutRefAdvertiser extends RefAdvertiser
PacketLineOut format.RefAdvertiser.PacketLineOutRefAdvertiser| Constructor | Description |
|---|---|
PacketLineOutRefAdvertiser(PacketLineOut out) |
Create a new advertiser for the supplied stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
end() |
Mark the end of the advertisements.
|
protected void |
writeOne(CharSequence line) |
Write a single advertisement line.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSymref, advertiseCapability, advertiseHave, advertiseId, init, isEmpty, send, setDerefTagspublic PacketLineOutRefAdvertiser(PacketLineOut out)
out - the output stream.protected void writeOne(CharSequence line) throws IOException
RefAdvertiserwriteOne in class RefAdvertiserline - the advertisement line to be written. The line always ends
with LF. Never null or the empty string.IOException - the underlying output stream failed to write out an
advertisement record.protected void end()
throws IOException
RefAdvertiserend in class RefAdvertiserIOException - the underlying output stream failed to write out an
advertisement record.Copyright © 2018. All rights reserved.