summaryrefslogtreecommitdiffstats
blob: c95e21ff5d8754ccefa0a757d2dcaef5e92dc531 (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.SafeByteArray;

/**
 * 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(SafeByteArray data);


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

    void setChildLayer(LowLayer childLayer);

    void writeDataToChildLayer(SafeByteArray data);

}