@Test public void testSystemtimeTypeNode() throws IOException { Calendar calendar = Calendar.getInstance(); assertEquals(SystemtimeTypeNode.getFormat().format(calendar.getTime()), new SystemtimeTypeNode(testBinaryReaderBuilder.putSystemtime(calendar).build(), chunkHeader, parent, -1).getValue()); }
public SystemtimeTypeNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent, int length) throws IOException { super(binaryReader, chunkHeader, parent, length); int year = binaryReader.readWord(); int month = binaryReader.readWord(); int dayOfWeek = binaryReader.readWord(); int day = binaryReader.readWord(); int hour = binaryReader.readWord(); int minute = binaryReader.readWord(); int second = binaryReader.readWord(); int millisecond = binaryReader.readWord(); Calendar calendar = Calendar.getInstance(); calendar.set(year, month, day, hour, minute, second); calendar.set(Calendar.MILLISECOND, millisecond); value = getFormat().format(calendar.getTime()); }
SystemtimeTypeNode extends VariantTypeNode { public SystemtimeTypeNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent, int length) throws IOException { super(binaryReader, chunkHeader, parent, length); int year = binaryReader.readWord(); int month = binaryReader.readWord(); int dayOfWeek = binaryReader.readWord(); int day = binaryReader.readWord(); int hour = binaryReader.readWord(); int minute = binaryReader.readWord(); int second = binaryReader.readWord(); int millisecond = binaryReader.readWord(); Calendar calendar = Calendar.getInstance(); calendar.set(year, month, day, hour, minute, second); calendar.set(Calendar.MILLISECOND, millisecond); value = getFormat().format(calendar.getTime()); } }
SystemtimeTypeNode extends VariantTypeNode { public SystemtimeTypeNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent, int length) throws IOException { super(binaryReader, chunkHeader, parent, length); int year = binaryReader.readWord(); int month = binaryReader.readWord(); int dayOfWeek = binaryReader.readWord(); int day = binaryReader.readWord(); int hour = binaryReader.readWord(); int minute = binaryReader.readWord(); int second = binaryReader.readWord(); int millisecond = binaryReader.readWord(); Calendar calendar = Calendar.getInstance(); calendar.set(year, month, day, hour, minute, second); calendar.set(Calendar.MILLISECOND, millisecond); value = getFormat().format(calendar.getTime()); } SystemtimeTypeNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent, int length); }
SystemtimeTypeNode extends VariantTypeNode { public SystemtimeTypeNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent, int length) throws IOException { super(binaryReader, chunkHeader, parent, length); int year = binaryReader.readWord(); int month = binaryReader.readWord(); int dayOfWeek = binaryReader.readWord(); int day = binaryReader.readWord(); int hour = binaryReader.readWord(); int minute = binaryReader.readWord(); int second = binaryReader.readWord(); int millisecond = binaryReader.readWord(); Calendar calendar = Calendar.getInstance(); calendar.set(year, month, day, hour, minute, second); calendar.set(Calendar.MILLISECOND, millisecond); value = getFormat().format(calendar.getTime()); } SystemtimeTypeNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent, int length); static final SimpleDateFormat getFormat(); @Override String getValue(); }
SystemtimeTypeNode extends VariantTypeNode { public SystemtimeTypeNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent, int length) throws IOException { super(binaryReader, chunkHeader, parent, length); int year = binaryReader.readWord(); int month = binaryReader.readWord(); int dayOfWeek = binaryReader.readWord(); int day = binaryReader.readWord(); int hour = binaryReader.readWord(); int minute = binaryReader.readWord(); int second = binaryReader.readWord(); int millisecond = binaryReader.readWord(); Calendar calendar = Calendar.getInstance(); calendar.set(year, month, day, hour, minute, second); calendar.set(Calendar.MILLISECOND, millisecond); value = getFormat().format(calendar.getTime()); } SystemtimeTypeNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent, int length); static final SimpleDateFormat getFormat(); @Override String getValue();  }