📄 oid_codec.java
字号:
/** * * OID_codec * * @author Ian Ibbotson ( ibbo@k-int.com ) * @version $Id: OID_codec.java,v 1.2 2000/12/23 10:44:33 ianibbo Exp $ * * Copyright: Copyright (C) 2000, Knowledge Integration Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 of * the license, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite * 330, Boston, MA 02111-1307, USA. * */package com.k_int.codec.runtime;import java.math.BigInteger;public class OID_codec extends base_codec{ private static OID_codec me = null; public static OID_codec getCodec() { if ( null == me ) me = new OID_codec(); return me; } public Object serialize(SerializationManager sm, Object type_instance, boolean is_optional, String type_name) throws java.io.IOException { int[] retval = (int[])type_instance; boolean is_constructed = false; sm.implicit_settag(SerializationManager.UNIVERSAL,SerializationManager.OID); int len = sm.tag_codec(false); if ( len < 0 ) return null; retval = sm.oid_codec(retval, is_constructed); return (Object)retval; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -