X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FConnection.java;h=762ba02451cc3d82d4e5bba6b3e2d8b03d846941;hb=3b2756c528ffa628472cf0b33a440d545607102d;hp=b8bee320bc8f434341e17e4ca395f1195f97d1c0;hpb=3edbf1f9c810e2e58aa3e78dab903cc7b01828c3;p=sonitus.git diff --git a/src/main/java/net/pterodactylus/sonitus/data/Connection.java b/src/main/java/net/pterodactylus/sonitus/data/Connection.java index b8bee32..762ba02 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/Connection.java +++ b/src/main/java/net/pterodactylus/sonitus/data/Connection.java @@ -82,4 +82,12 @@ public abstract class Connection implements Runnable { */ protected abstract void feed(byte[] buffer) throws IOException; + /** + * Notifies the sink that the source does not deliver any more data. + * + * @throws IOException + * if an I/O error occurs + */ + protected abstract void finish() throws IOException; + }