本文整理了Java中org.omg.CORBA.portable.InputStream.available()
方法的一些代码示例,展示了InputStream.available()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InputStream.available()
方法的具体详情如下:
包路径:org.omg.CORBA.portable.InputStream
类名称:InputStream
方法名:available
暂无
代码示例来源:origin: org.jacorb/jacorb-services
public static int[] read (final org.omg.CORBA.portable.InputStream _in)
{
int[] _result;
int _l_result1 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result1 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result1);
}
}
catch (java.io.IOException e)
{
}
_result = new int[_l_result1];
_in.read_long_array(_result,0,_l_result1);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-services
public static int[] read (final org.omg.CORBA.portable.InputStream _in)
{
int[] _result;
int _l_result3 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result3 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result3);
}
}
catch (java.io.IOException e)
{
}
_result = new int[_l_result3];
_in.read_long_array(_result,0,_l_result3);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static char[] read (final org.omg.CORBA.portable.InputStream _in)
{
char[] _result;
int _l_result31 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result31 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result31);
}
}
catch (java.io.IOException e)
{
}
_result = new char[_l_result31];
_in.read_wchar_array(_result,0,_l_result31);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static byte[] read (final org.omg.CORBA.portable.InputStream _in)
{
byte[] _result;
int _l_result10 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result10 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result10);
}
}
catch (java.io.IOException e)
{
}
_result = new byte[_l_result10];
_in.read_octet_array(_result,0,_l_result10);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static int[] read (final org.omg.CORBA.portable.InputStream _in)
{
int[] _result;
int _l_result5 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result5 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result5);
}
}
catch (java.io.IOException e)
{
}
_result = new int[_l_result5];
_in.read_ulong_array(_result,0,_l_result5);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static byte[] read (final org.omg.CORBA.portable.InputStream _in)
{
byte[] _result;
int _l_result3 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result3 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result3);
}
}
catch (java.io.IOException e)
{
}
_result = new byte[_l_result3];
_in.read_octet_array(_result,0,_l_result3);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static int[] read (final org.omg.CORBA.portable.InputStream _in)
{
int[] _result;
int _l_result35 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result35 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result35);
}
}
catch (java.io.IOException e)
{
}
_result = new int[_l_result35];
_in.read_long_array(_result,0,_l_result35);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static byte[] read (final org.omg.CORBA.portable.InputStream _in)
{
byte[] _result;
int _l_result1 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result1 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result1);
}
}
catch (java.io.IOException e)
{
}
_result = new byte[_l_result1];
_in.read_octet_array(_result,0,_l_result1);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static byte[] read (final org.omg.CORBA.portable.InputStream _in)
{
byte[] _result;
int _l_result2 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result2 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result2);
}
}
catch (java.io.IOException e)
{
}
_result = new byte[_l_result2];
_in.read_octet_array(_result,0,_l_result2);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static byte[] read (final org.omg.CORBA.portable.InputStream _in)
{
byte[] _result;
int _l_result1 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result1 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result1);
}
}
catch (java.io.IOException e)
{
}
_result = new byte[_l_result1];
_in.read_octet_array(_result,0,_l_result1);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static byte[] read (final org.omg.CORBA.portable.InputStream _in)
{
byte[] _result;
int _l_result32 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result32 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result32);
}
}
catch (java.io.IOException e)
{
}
_result = new byte[_l_result32];
_in.read_octet_array(_result,0,_l_result32);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-services
public static int[] read (final org.omg.CORBA.portable.InputStream _in)
{
int[] _result;
int _l_result5 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result5 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result5);
}
}
catch (java.io.IOException e)
{
}
_result = new int[_l_result5];
_in.read_long_array(_result,0,_l_result5);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-services
public static int[] read (final org.omg.CORBA.portable.InputStream _in)
{
int[] _result;
int _l_result6 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result6 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result6);
}
}
catch (java.io.IOException e)
{
}
_result = new int[_l_result6];
_in.read_ulong_array(_result,0,_l_result6);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static double[] read (final org.omg.CORBA.portable.InputStream _in)
{
double[] _result;
int _l_result41 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result41 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result41);
}
}
catch (java.io.IOException e)
{
}
_result = new double[_l_result41];
_in.read_double_array(_result,0,_l_result41);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static char[] read (final org.omg.CORBA.portable.InputStream _in)
{
char[] _result;
int _l_result30 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result30 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result30);
}
}
catch (java.io.IOException e)
{
}
_result = new char[_l_result30];
_in.read_char_array(_result,0,_l_result30);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-services
public static int[] read (final org.omg.CORBA.portable.InputStream _in)
{
int[] _result;
int _l_result1 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result1 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result1);
}
}
catch (java.io.IOException e)
{
}
_result = new int[_l_result1];
_in.read_long_array(_result,0,_l_result1);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-services
public static int[] read (final org.omg.CORBA.portable.InputStream _in)
{
int[] _result;
int _l_result0 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result0 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result0);
}
}
catch (java.io.IOException e)
{
}
_result = new int[_l_result0];
_in.read_long_array(_result,0,_l_result0);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-services
public static int[] read (final org.omg.CORBA.portable.InputStream _in)
{
int[] _result;
int _l_result2 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result2 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result2);
}
}
catch (java.io.IOException e)
{
}
_result = new int[_l_result2];
_in.read_long_array(_result,0,_l_result2);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static int[] read (final org.omg.CORBA.portable.InputStream _in)
{
int[] _result;
int _l_result0 = _in.read_long();
try
{
int x = _in.available();
if ( x > 0 && _l_result0 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result0);
}
}
catch (java.io.IOException e)
{
}
_result = new int[_l_result0];
_in.read_ulong_array(_result,0,_l_result0);
return _result;
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public void _read (final org.omg.CORBA.portable.InputStream os)
{
is_system_exception=os.read_boolean();
byte_order=os.read_boolean();
int _lmarshaled_exception1 = os.read_long();
try
{
int x = os.available();
if ( x > 0 && _lmarshaled_exception1 > x )
{
throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _lmarshaled_exception1);
}
}
catch (java.io.IOException e)
{
}
marshaled_exception = new byte[_lmarshaled_exception1];
os.read_octet_array(marshaled_exception,0,_lmarshaled_exception1);
}
内容来源于网络,如有侵权,请联系作者删除!