public static class RefAdvertiser.PacketLineOutRefAdvertiser extends RefAdvertiser
PacketLineOut format.RefAdvertiser.PacketLineOutRefAdvertiser| Constructor and Description |
|---|
RefAdvertiser.PacketLineOutRefAdvertiser(PacketLineOut out)
Create a new advertiser for the supplied stream.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
end()
Mark the end of the advertisements.
|
protected void |
writeOne(CharSequence line)
Write a single advertisement line.
|
advertiseCapability, advertiseHave, advertiseId, init, isEmpty, send, setDerefTagspublic RefAdvertiser.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 © 2014. All rights reserved.