summaryrefslogtreecommitdiffstats
blob: 9ef37d184c4c65145c8920d072cf0d2c2f83c62c (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
/*
 * Copyright (c) 2010 Remko Tron¨on
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */
/*
 * Copyright (c) 2010-2011, Isode Limited, London, England.
 * All rights reserved.
 */
package com.isode.stroke.streamstack;

import com.isode.stroke.base.ByteArray;

/**
 * Because of the lack of multiple inheritance in Java, this has to be done
 * slightly differently from Swiften. What happens is that the methods in Swiften
 * are provided abstract here, and implemented in the StreamLayer instead.
 */
public interface HighLayer {

    void handleDataRead(ByteArray data);


    /* Should be protected */
    LowLayer getChildLayer();

    void setChildLayer(LowLayer childLayer);

    void writeDataToChildLayer(ByteArray data);

}