Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
EOFProtocol |
|
| 0.0;0 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.transport.tcp.protocols; | |
8 | ||
9 | /** | |
10 | * The EOFProtocol class is an application level tcp protocol that does nothing. | |
11 | * Reading is terminated by the stream being closed by the client. | |
12 | */ | |
13 | 0 | public class EOFProtocol extends DirectProtocol |
14 | { | |
15 | ||
16 | /** | |
17 | * Repeat until end of file | |
18 | * | |
19 | * @param len Amount transferred last call (-1 on EOF or socket error) | |
20 | * @param available Amount available | |
21 | * @return true if the transfer should continue | |
22 | */ | |
23 | @Override | |
24 | protected boolean isRepeat(int len, int available) | |
25 | { | |
26 | 0 | return true; |
27 | } | |
28 | ||
29 | } |