Package org.hxzon.asn1.mms.common

Examples of org.hxzon.asn1.mms.common.EEDuration


    //add by hxzon
    protected void readValue(BerInputStream stream) {
        try {
            int len = stream.readBerLength();
            if (len != 0) {
                throw new AsnEncodingException("Illegal null object");
            }
            super.setOffsetAndLen(stream);
        } catch (IOException e) {
            logger.error("BerNull read value error", e);
        }
View Full Code Here


                date = date.substring(0, date.length() - 1);
            }
            try {
                return _gFormat.parse(date);
            } catch (ParseException e) {
                throw new AsnEncodingException("Illegal formatted date read from input stream");
            }
        }
    }
View Full Code Here

                date = date.substring(0, date.length() - 1);
            }
            try {
                return _gFormat.parse(date);
            } catch (ParseException e) {
                throw new AsnEncodingException("Illegal formatted date read from input stream");
            }
        }
    }
View Full Code Here

        }
    }

    public BerNode parseGoose(byte[] data, int offset) {
        ByteArrayInputStream inStream = new ByteArrayInputStream(BytesUtil.copyBytes(data, offset));
        BerInputStream in = new BerInputStream(inStream);
        in.setTagOffset(offset);
        try {
            return super.readPacket(in);
        } catch (IOException e) {
            e.printStackTrace();
            return null;
View Full Code Here

    public static void main(String[] args) throws IOException {
        byte[] data = BytesUtil.fromHexString(smv2);
        String reverse = BytesUtil.toHexString(data);
        System.out.println(reverse);
        ByteArrayInputStream inStream = new ByteArrayInputStream(data);
        BerInputStream in = new BerInputStream(inStream);

        SvPduParser parser = SvPduParser.parser;
        BerNode node;
        while (null != (node = parser.readPacket(in))) {
            System.out.println(Asn1Utils.printBerNode(node));
View Full Code Here

    public static void main(String[] args) throws IOException {
        byte[] data = BytesUtil.fromHexString(mms2);
//        String reverse=BytesUtil.toHexString(data);
//        System.out.println(reverse);
        ByteArrayInputStream inStream = new ByteArrayInputStream(data);
        BerInputStream in = new BerInputStream(inStream);

        BerNode node;
        while (null != (node = OsiPresentationParser.parser.readPacket(in))) {
            System.out.println(Asn1Utils.printBerNode(node));
        }
View Full Code Here

        }
    }

    public BerNode parsePresentation(byte[] data, int offset) {
        ByteArrayInputStream inStream = new ByteArrayInputStream(BytesUtil.copyBytes(data, offset));
        BerInputStream in = new BerInputStream(inStream);
        in.setTagOffset(offset);
        try {
            return super.readPacket(in);
        } catch (IOException e) {
            e.printStackTrace();
            return null;
View Full Code Here

        }
    }

    public BerNode parseSv(byte[] data, int offset) {
        ByteArrayInputStream inStream = new ByteArrayInputStream(BytesUtil.copyBytes(data, offset));
        BerInputStream in = new BerInputStream(inStream);
        in.setTagOffset(offset);
        try {
            return super.readPacket(in);
        } catch (IOException e) {
            e.printStackTrace();
            return null;
View Full Code Here

    public static void main(String[] args) throws IOException {
        byte[] data = BytesUtil.fromHexString(mms1);
        String reverse = BytesUtil.toHexString(data);
        System.out.println(reverse);
        ByteArrayInputStream inStream = new ByteArrayInputStream(data);
        BerInputStream in = new BerInputStream(inStream);

        MmsPduParser parser = new MmsPduParser();
        BerNode node;
        while (null != (node = parser.readPacket(in))) {
            System.out.println(Asn1Utils.printBerNode(node));
View Full Code Here

    public static void main(String[] args) throws IOException {
        byte[] data = BytesUtil.fromHexString(goose2);
//        String reverse=BytesUtil.toHexString(data);
//        System.out.println(reverse);
        ByteArrayInputStream inStream = new ByteArrayInputStream(data);
        BerInputStream in = new BerInputStream(inStream);

        GoosePduParser parser = GoosePduParser.parser;
        BerNode node;
        while (null != (node = parser.readPacket(in))) {
            System.out.println(node.toString());
View Full Code Here

TOP

Related Classes of org.hxzon.asn1.mms.common.EEDuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.