blob: c3b4e0deedc4c8fd081fcb1d89ea80d00c765f42 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.test;
import com.yahoo.jdisc.handler.CompletionHandler;
import com.yahoo.jdisc.handler.ContentChannel;
import java.nio.ByteBuffer;
/**
* @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
*/
public final class NonWorkingContentChannel implements ContentChannel {
@Override
public void write(ByteBuffer buf, CompletionHandler handler) {
throw new UnsupportedOperationException();
}
@Override
public void close(CompletionHandler handler) {
throw new UnsupportedOperationException();
}
}
|