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, wait
addSymref, advertiseCapability, advertiseHave, advertiseId, init, isEmpty, send, setDerefTags
public 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 © 2018. All rights reserved.