package com.vci.corba.volume.data; /** * Generated from IDL struct "FileInfo". * * @author JacORB IDL compiler V 3.9 * @version generated at 2022-12-23 15:42:24 */ public abstract class FileInfoHelper { private volatile static org.omg.CORBA.TypeCode _type; public static org.omg.CORBA.TypeCode type () { if (_type == null) { synchronized(FileInfoHelper.class) { if (_type == null) { _type = org.omg.CORBA.ORB.init().create_struct_tc(com.vci.corba.volume.data.FileInfoHelper.id(),"FileInfo",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("filePath", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("fileSavePath", org.omg.CORBA.ORB.init().create_wstring_tc(0), null),new org.omg.CORBA.StructMember("isDirectory", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(8)), null),new org.omg.CORBA.StructMember("fileSize", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(23)), null)}); } } } return _type; } public static void insert (final org.omg.CORBA.Any any, final com.vci.corba.volume.data.FileInfo s) { any.type(type()); write( any.create_output_stream(),s); } public static com.vci.corba.volume.data.FileInfo extract (final org.omg.CORBA.Any any) { org.omg.CORBA.portable.InputStream in = any.create_input_stream(); try { return read (in); } finally { try { in.close(); } catch (java.io.IOException e) { throw new RuntimeException("Unexpected exception " + e.toString() ); } } } public static String id() { return "IDL:com/vci/corba/volume/data/FileInfo:1.0"; } public static com.vci.corba.volume.data.FileInfo read (final org.omg.CORBA.portable.InputStream in) { com.vci.corba.volume.data.FileInfo result = new com.vci.corba.volume.data.FileInfo(); result.filePath=in.read_wstring(); result.fileSavePath=in.read_wstring(); result.isDirectory=in.read_boolean(); result.fileSize=in.read_longlong(); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final com.vci.corba.volume.data.FileInfo s) { java.lang.String tmpResult367 = s.filePath; out.write_wstring( tmpResult367 ); java.lang.String tmpResult368 = s.fileSavePath; out.write_wstring( tmpResult368 ); out.write_boolean(s.isDirectory); out.write_longlong(s.fileSize); } }