int result3 = streamState.pagein(page);
streamState.pagein(page);
    private int getNextPacket(Packet packet) throws IOException {        // get next packet.        boolean fetchedPacket = false;        while (!eos && !fetchedPacket) {            int result1 = streamState.packetout(packet);            if (result1 == 0) {                // no more packets in page. Fetch new page.                int result2 = syncState.pageout(page);                // return if we have reaced end of file.                if ((result2 == 0) && (page.eos() != 0)) {                    return -1;                }                                if (result2 == 0) {                    // need more data fetching page..                    fetchData();                } else if (result2 == -1) {                    //throw new Exception("syncState.pageout(page) result == -1");                    System.out.println("syncState.pageout(page) result == -1");                    return -1;                } else {                    int result3 = streamState.pagein(page);                }            } else if (result1 == -1) {                //throw new Exception("streamState.packetout(packet) result == -1");                System.out.println("streamState.packetout(packet) result == -1");                return -1;            } else {                fetchedPacket = true;            }        }        return 0;    }