org.ccsds.moims.mo.mal.structures.Blob.isURLBased()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.ccsds.moims.mo.mal.structures.Blob.isURLBased()方法的一些代码示例,展示了Blob.isURLBased()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Blob.isURLBased()方法的具体详情如下:
包路径:org.ccsds.moims.mo.mal.structures.Blob
类名称:Blob
方法名:isURLBased

Blob.isURLBased介绍

暂无

代码示例

代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-com

@Override
public void encodeNullableBlob(final Blob value) throws MALException
{
 try
 {
  if ((null != value)
      && ((value.isURLBased() && (null != value.getURL()))
      || (!value.isURLBased() && (null != value.getValue()))))
  {
   encodeBlob(value);
  }
  else
  {
   outputStream.addBytes((byte[]) null);
  }
 }
 catch (IOException ex)
 {
  throw new MALException(ENCODING_EXCEPTION_STR, ex);
 }
}

代码示例来源:origin: int.esa.ccsds.mo/ENCODING_GEN

@Override
public void encodeNullableBlob(final Blob value) throws MALException
{
 try
 {
  if ((null != value)
      && ((value.isURLBased() && (null != value.getURL()))
      || (!value.isURLBased() && (null != value.getValue()))))
  {
   outputStream.addNotNull();
   encodeBlob(value);
  }
  else
  {
   outputStream.addIsNull();
  }
 }
 catch (IOException ex)
 {
  throw new MALException(ENCODING_EXCEPTION_STR, ex);
 }
}

代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-com

@Override
public void encodeNullableBlob(final Blob value) throws MALException
{
 try
 {
  if ((null != value)
      && ((value.isURLBased() && (null != value.getURL()))
      || (!value.isURLBased() && (null != value.getValue()))))
  {
   outputStream.addNotNull();
   encodeBlob(value);
  }
  else
  {
   outputStream.addIsNull();
  }
 }
 catch (IOException ex)
 {
  throw new MALException(ENCODING_EXCEPTION_STR, ex);
 }
}

代码示例来源:origin: int.esa.ccsds.mo/ENCODING_GEN

@Override
public void encodeBlob(final Blob value) throws MALException
{
 try
 {
  checkForNull(value);
  if (value.isURLBased())
  {
   checkForNull(value.getURL());
  }
  else
  {
   checkForNull(value.getValue());
  }
  outputStream.addBytes(value.getValue());
 }
 catch (IOException ex)
 {
  throw new MALException(ENCODING_EXCEPTION_STR, ex);
 }
}

代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-com

@Override
public void encodeBlob(final Blob value) throws MALException
{
 try
 {
  checkForNull(value);
  if (value.isURLBased())
  {
   checkForNull(value.getURL());
  }
  else
  {
   checkForNull(value.getValue());
  }
  outputStream.addBytes(value.getValue());
 }
 catch (IOException ex)
 {
  throw new MALException(ENCODING_EXCEPTION_STR, ex);
 }
}

相关文章