public void readFully(byte[] arr, int off, int val) throws java.io.IOException { in.read_octet_array(arr, off, val); }
public UnknownServiceContext(int id, InputStream is) { this.id = id; int len = is.read_long(); data = new byte[len]; is.read_octet_array(data, 0, len); }
/** * Helper method that reads an octet array from an input stream. Defined as static here so that it can be used in * another class. */ static public byte[] readOctets(InputStream is) { int len = is.read_ulong(); byte[] data = new byte[len]; is.read_octet_array(data, 0, len); return data; }
protected byte[] readObjectKey(InputStream is) { int len = is.read_long(); byte[] result = new byte[len]; is.read_octet_array(result, 0, len); return result; }
public UnknownServiceContext(int id, InputStream is) { this.id = id; int len = is.read_long(); data = new byte[len]; is.read_octet_array(data, 0, len); }
protected byte[] readObjectKey( InputStream is ) { int len = is.read_long() ; byte[] result = new byte[len] ; is.read_octet_array( result, 0, len ) ; return result ; }
protected byte[] readObjectKey(InputStream is) { int len = is.read_long(); byte[] result = new byte[len]; is.read_octet_array(result, 0, len); return result; }
/** Helper method that reads an octet array from an input stream. * Defined as static here so that it can be used in another class. */ static public byte[] readOctets( InputStream is ) { int len = is.read_ulong() ; byte[] data = new byte[len] ; is.read_octet_array( data, 0, len ) ; return data ; }
public UnknownServiceContext( int id, InputStream is ) { this.id = id ; int len = is.read_long(); data = new byte[len]; is.read_octet_array(data,0,len); }
/** * Helper method that reads an octet array from an input stream. Defined as static here so that it can be used in * another class. */ static public byte[] readOctets(InputStream is) { int len = is.read_ulong(); byte[] data = new byte[len]; is.read_octet_array(data, 0, len); return data; }
public final void readFully(byte data[], int offset, int size) throws IOException{ // d11623 : implement readFully, required for serializing some core classes try{ readObjectState.readData(this); orbStream.read_octet_array(data, offset, size); } catch (MARSHAL marshalException) { handleOptionalDataMarshalException(marshalException, false); throw marshalException; } catch(Error e) { IOException exc = new IOException(e.getMessage()); exc.initCause(e); throw exc ; } }
public final int skipBytes(int len) throws IOException{ try{ readObjectState.readData(this); byte buf[] = new byte[len]; orbStream.read_octet_array(buf, 0, len); return len; } catch (MARSHAL marshalException) { handleOptionalDataMarshalException(marshalException, false); throw marshalException; } catch(Error e) { IOException exc = new IOException(e.getMessage()); exc.initCause(e) ; throw exc ; } }
public final int skipBytes(int len) throws IOException { try { readObjectState.readData(this); byte buf[] = new byte[len]; orbStream.read_octet_array(buf, 0, len); return len; } catch (MARSHAL marshalException) { handleOptionalDataMarshalException(marshalException, false); throw marshalException; } catch (Error e) { IOException exc = new IOException(e.getMessage()); exc.initCause(e); throw exc; } }
public final int read(byte data[], int offset, int length) throws IOException{ try{ readObjectState.readData(this); orbStream.read_octet_array(data, offset, length); return length; } catch (MARSHAL marshalException) { if (marshalException.minor == OMGSystemException.RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE1) { setState(IN_READ_OBJECT_NO_MORE_OPT_DATA); return -1; } throw marshalException; } catch(Error e) { IOException exc = new IOException(e.getMessage()); exc.initCause(e) ; throw exc ; } }
public final int skipBytes(int len) throws IOException { try { readObjectState.readData(this); byte buf[] = new byte[len]; orbStream.read_octet_array(buf, 0, len); return len; } catch (MARSHAL marshalException) { handleOptionalDataMarshalException(marshalException, false); throw marshalException; } catch (Error e) { IOException exc = new IOException(e.getMessage()); exc.initCause(e); throw exc; } }
public final int read(byte data[], int offset, int length) throws IOException { try { readObjectState.readData(this); orbStream.read_octet_array(data, offset, length); return length; } catch (MARSHAL marshalException) { if (marshalException.minor == OMGSystemException.RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE1) { setState(IN_READ_OBJECT_NO_MORE_OPT_DATA); return -1; } throw marshalException; } catch (Error e) { IOException exc = new IOException(e.getMessage()); exc.initCause(e); throw exc; } }
public final void readFully(byte data[], int offset, int size) throws IOException { // d11623 : implement readFully, required for serializing some core classes try { readObjectState.readData(this); orbStream.read_octet_array(data, offset, size); } catch (MARSHAL marshalException) { handleOptionalDataMarshalException(marshalException, false); throw marshalException; } catch (Error e) { IOException exc = new IOException(e.getMessage()); exc.initCause(e); throw exc; } }
public final void readFully(byte data[], int offset, int size) throws IOException { // d11623 : implement readFully, required for serializing some core classes try { readObjectState.readData(this); orbStream.read_octet_array(data, offset, size); } catch (MARSHAL marshalException) { handleOptionalDataMarshalException(marshalException, false); throw marshalException; } catch (Error e) { IOException exc = new IOException(e.getMessage()); exc.initCause(e); throw exc; } }
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = new TypeCodeInputStream(_orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = new TypeCodeInputStream(_orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); return encap; }
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = new TypeCodeInputStream(_orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = new TypeCodeInputStream(_orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); return encap; }