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(java.lang.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(java.lang.CharSequence line)
throws java.io.IOException
RefAdvertiserwriteOne in class RefAdvertiserline - the advertisement line to be written. The line always ends
with LF. Never null or the empty string.java.io.IOException - the underlying output stream failed to write out an
advertisement record.protected void end()
throws java.io.IOException
RefAdvertiserend in class RefAdvertiserjava.io.IOException - the underlying output stream failed to write out an
advertisement record.Copyright © 2012. All Rights Reserved.