1 | package fr.sii.ogham.sms.sender.impl.cloudhopper.preparator; | |
2 | ||
3 | import com.cloudhopper.commons.gsm.DataCoding; | |
4 | ||
5 | import fr.sii.ogham.sms.encoder.Encoded; | |
6 | import fr.sii.ogham.sms.sender.impl.cloudhopper.exception.DataCodingException; | |
7 | ||
8 | /** | |
9 | * Use a fixed value for every messages. | |
10 | * | |
11 | * @author Aurélien Baudet | |
12 | * | |
13 | */ | |
14 | public class FixedByteValueDataCodingProvider implements DataCodingProvider { | |
15 | private final byte dcs; | |
16 | ||
17 | /** | |
18 | * Initializes with the Data Coding Scheme value to use for all messages. | |
19 | * | |
20 | * @param dcs | |
21 | * teh Data Coding Scheme value | |
22 | */ | |
23 | public FixedByteValueDataCodingProvider(byte dcs) { | |
24 | super(); | |
25 | this.dcs = dcs; | |
26 | } | |
27 | ||
28 | @Override | |
29 | public DataCoding provide(Encoded encoded) throws DataCodingException { | |
30 |
1
1. provide : replaced return value with null for fr/sii/ogham/sms/sender/impl/cloudhopper/preparator/FixedByteValueDataCodingProvider::provide → NO_COVERAGE |
return DataCoding.parse(dcs); |
31 | } | |
32 | ||
33 | } | |
Mutations | ||
30 |
1.1 |