blob: c87bb531bc3a9ff574c7b26ed202036de880f9eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
package org.noreply.fancydress.type3.routing;
/**
* Base class for all Routing classes.
*
* Routing Type and Routing Information are pooled into this one entity.
*
* @see RoutingType
*/
public abstract class Routing {
protected RoutingType type;
/**
* Default constructor.
*
* @param type The routing type as integer.
*/
protected Routing(int type) {
this.type = new RoutingType(type);
}
/**
* Return the total length in octets of the routing information.
*
* @return total length in octets of the routing information
*/
public abstract int getRoutingInformationLength();
/**
* Return the routing information.
*
* @return routing information
*/
public abstract byte[] getRoutingInformation();
/**
* Get the routing type of this instance.
*
* @return routing type
*/
public int getRoutingType() {
return type.getType();
}
}
|