gpt4 book ai didi

libcore.util.ZoneInfo.makeTimeZone()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 04:31:31 29 4
gpt4 key购买 nike

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

ZoneInfo.makeTimeZone介绍

暂无

代码示例

代码示例来源:origin: robovm/robovm

public TimeZone makeTimeZone(String id) throws IOException {
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
   return null;
  }
  BufferIterator it = mappedFile.bigEndianIterator();
  it.skip(byteOffsets[index]);
  return ZoneInfo.makeTimeZone(id, it);
 }
}

代码示例来源:origin: robovm/robovm

private TimeZone makeTimeZone(String id, boolean clone) throws IOException {
  // Check the aliases first
  String realId = deprecatedAliases.get(id);
  if (realId != null) {
    return makeTimeZone(realId, clone);
  }
  
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
    return null;
  }
  ZoneInfo zoneInfo = zoneInfos[index];
  if (zoneInfo != null) {
    return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
  }
  
  byte[] bytes = IoUtils.readFileAsByteArray(ZONE_DIRECTORY_NAME + id);
  BufferIterator it = HeapBufferIterator.iterator(bytes, 0, bytes.length, ByteOrder.BIG_ENDIAN);
  zoneInfo = (ZoneInfo) ZoneInfo.makeTimeZone(id, it);
  zoneInfos[index] = zoneInfo;
  return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
}

代码示例来源:origin: MobiVM/robovm

public TimeZone makeTimeZone(String id) throws IOException {
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
   return null;
  }
  BufferIterator it = mappedFile.bigEndianIterator();
  it.skip(byteOffsets[index]);
  return ZoneInfo.makeTimeZone(id, it);
 }
}

代码示例来源:origin: ibinti/bugvm

public TimeZone makeTimeZone(String id) throws IOException {
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
   return null;
  }
  BufferIterator it = mappedFile.bigEndianIterator();
  it.skip(byteOffsets[index]);
  return ZoneInfo.makeTimeZone(id, it);
 }
}

代码示例来源:origin: com.bugvm/bugvm-rt

public TimeZone makeTimeZone(String id) throws IOException {
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
   return null;
  }
  BufferIterator it = mappedFile.bigEndianIterator();
  it.skip(byteOffsets[index]);
  return ZoneInfo.makeTimeZone(id, it);
 }
}

代码示例来源:origin: com.gluonhq/robovm-rt

public TimeZone makeTimeZone(String id) throws IOException {
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
   return null;
  }
  BufferIterator it = mappedFile.bigEndianIterator();
  it.skip(byteOffsets[index]);
  return ZoneInfo.makeTimeZone(id, it);
 }
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

public TimeZone makeTimeZone(String id) throws IOException {
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
   return null;
  }
  BufferIterator it = mappedFile.bigEndianIterator();
  it.skip(byteOffsets[index]);
  return ZoneInfo.makeTimeZone(id, it);
 }
}

代码示例来源:origin: FlexoVM/flexovm

public TimeZone makeTimeZone(String id) throws IOException {
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
   return null;
  }
  BufferIterator it = mappedFile.bigEndianIterator();
  it.skip(byteOffsets[index]);
  return ZoneInfo.makeTimeZone(id, it);
 }
}

代码示例来源:origin: ibinti/bugvm

private TimeZone makeTimeZone(String id, boolean clone) throws IOException {
  // Check the aliases first
  String realId = deprecatedAliases.get(id);
  if (realId != null) {
    return makeTimeZone(realId, clone);
  }
  
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
    return null;
  }
  ZoneInfo zoneInfo = zoneInfos[index];
  if (zoneInfo != null) {
    return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
  }
  
  byte[] bytes = IoUtils.readFileAsByteArray(ZONE_DIRECTORY_NAME + id);
  BufferIterator it = HeapBufferIterator.iterator(bytes, 0, bytes.length, ByteOrder.BIG_ENDIAN);
  zoneInfo = (ZoneInfo) ZoneInfo.makeTimeZone(id, it);
  zoneInfos[index] = zoneInfo;
  return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
}

代码示例来源:origin: com.bugvm/bugvm-rt

private TimeZone makeTimeZone(String id, boolean clone) throws IOException {
  // Check the aliases first
  String realId = deprecatedAliases.get(id);
  if (realId != null) {
    return makeTimeZone(realId, clone);
  }
  
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
    return null;
  }
  ZoneInfo zoneInfo = zoneInfos[index];
  if (zoneInfo != null) {
    return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
  }
  
  byte[] bytes = IoUtils.readFileAsByteArray(ZONE_DIRECTORY_NAME + id);
  BufferIterator it = HeapBufferIterator.iterator(bytes, 0, bytes.length, ByteOrder.BIG_ENDIAN);
  zoneInfo = (ZoneInfo) ZoneInfo.makeTimeZone(id, it);
  zoneInfos[index] = zoneInfo;
  return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
}

代码示例来源:origin: MobiVM/robovm

private TimeZone makeTimeZone(String id, boolean clone) throws IOException {
  // Check the aliases first
  String realId = deprecatedAliases.get(id);
  if (realId != null) {
    return makeTimeZone(realId, clone);
  }
  
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
    return null;
  }
  ZoneInfo zoneInfo = zoneInfos[index];
  if (zoneInfo != null) {
    return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
  }
  
  byte[] bytes = IoUtils.readFileAsByteArray(ZONE_DIRECTORY_NAME + id);
  BufferIterator it = HeapBufferIterator.iterator(bytes, 0, bytes.length, ByteOrder.BIG_ENDIAN);
  zoneInfo = (ZoneInfo) ZoneInfo.makeTimeZone(id, it);
  zoneInfos[index] = zoneInfo;
  return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

private TimeZone makeTimeZone(String id, boolean clone) throws IOException {
  // Check the aliases first
  String realId = deprecatedAliases.get(id);
  if (realId != null) {
    return makeTimeZone(realId, clone);
  }
  
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
    return null;
  }
  ZoneInfo zoneInfo = zoneInfos[index];
  if (zoneInfo != null) {
    return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
  }
  
  byte[] bytes = IoUtils.readFileAsByteArray(ZONE_DIRECTORY_NAME + id);
  BufferIterator it = HeapBufferIterator.iterator(bytes, 0, bytes.length, ByteOrder.BIG_ENDIAN);
  zoneInfo = (ZoneInfo) ZoneInfo.makeTimeZone(id, it);
  zoneInfos[index] = zoneInfo;
  return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
}

代码示例来源:origin: com.gluonhq/robovm-rt

private TimeZone makeTimeZone(String id, boolean clone) throws IOException {
  // Check the aliases first
  String realId = deprecatedAliases.get(id);
  if (realId != null) {
    return makeTimeZone(realId, clone);
  }
  
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
    return null;
  }
  ZoneInfo zoneInfo = zoneInfos[index];
  if (zoneInfo != null) {
    return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
  }
  
  byte[] bytes = IoUtils.readFileAsByteArray(ZONE_DIRECTORY_NAME + id);
  BufferIterator it = HeapBufferIterator.iterator(bytes, 0, bytes.length, ByteOrder.BIG_ENDIAN);
  zoneInfo = (ZoneInfo) ZoneInfo.makeTimeZone(id, it);
  zoneInfos[index] = zoneInfo;
  return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
}

代码示例来源:origin: FlexoVM/flexovm

private TimeZone makeTimeZone(String id, boolean clone) throws IOException {
  // Check the aliases first
  String realId = deprecatedAliases.get(id);
  if (realId != null) {
    return makeTimeZone(realId, clone);
  }
  
  // Work out where in the big data file this time zone is.
  int index = Arrays.binarySearch(ids, id);
  if (index < 0) {
    return null;
  }
  ZoneInfo zoneInfo = zoneInfos[index];
  if (zoneInfo != null) {
    return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
  }
  
  byte[] bytes = IoUtils.readFileAsByteArray(ZONE_DIRECTORY_NAME + id);
  BufferIterator it = HeapBufferIterator.iterator(bytes, 0, bytes.length, ByteOrder.BIG_ENDIAN);
  zoneInfo = (ZoneInfo) ZoneInfo.makeTimeZone(id, it);
  zoneInfos[index] = zoneInfo;
  return clone ? (TimeZone) zoneInfo.clone() : zoneInfo;
}

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com