equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
41 class SourceChannelImpl |
41 class SourceChannelImpl |
42 extends Pipe.SourceChannel |
42 extends Pipe.SourceChannel |
43 implements SelChImpl |
43 implements SelChImpl |
44 { |
44 { |
45 // The SocketChannel assoicated with this pipe |
45 // The SocketChannel assoicated with this pipe |
46 SocketChannel sc; |
46 private final SocketChannel sc; |
47 |
47 |
48 public FileDescriptor getFD() { |
48 public FileDescriptor getFD() { |
49 return ((SocketChannelImpl) sc).getFD(); |
49 return ((SocketChannelImpl) sc).getFD(); |
50 } |
50 } |
51 |
51 |