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.
|
addSymref, advertiseCapability, advertiseHave, advertiseId, init, isEmpty, send, setDerefTags
public RefAdvertiser.PacketLineOutRefAdvertiser(PacketLineOut out)
out
- the output stream.protected void writeOne(CharSequence line) throws IOException
RefAdvertiser
writeOne
in class RefAdvertiser
line
- 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
RefAdvertiser
end
in class RefAdvertiser
IOException
- the underlying output stream failed to write out an
advertisement record.Copyright © 2015. All rights reserved.