@Test public void getTagType() { Tag tag; tag = new Tag(0x55, Tag.UNIVERSAL, Tag.TagType.PRIMITIVE, 2); Assert.assertEquals(Tag.TagType.PRIMITIVE, tag.getTagType()); tag = new Tag(0x55, Tag.APPLICATION, Tag.TagType.CONSTRUCTED, 2); Assert.assertEquals(Tag.TagType.CONSTRUCTED, tag.getTagType()); tag = new Tag(ByteArrayUtil.fromHex("1F550100"), 0); Assert.assertEquals(Tag.TagType.PRIMITIVE, tag.getTagType()); tag = new Tag(ByteArrayUtil.fromHex("3F550100"), 0); Assert.assertEquals(Tag.TagType.CONSTRUCTED, tag.getTagType()); }
public TagType getTagType() { return tagType; }
Tag { public TagType getTagType() { return tagType; } }
Tag { public TagType getTagType() { return tagType; } Tag(int tagNumber, byte tagClass, TagType tagType, int tagSize);  Tag(byte[] binary, int offset); }
Tag { public TagType getTagType() { return tagType; } Tag(int tagNumber, byte tagClass, TagType tagType, int tagSize);  Tag(byte[] binary, int offset); int getTagNumber(); byte getTagClass(); TagType getTagType(); int getTagSize(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
Tag { public TagType getTagType() { return tagType; } Tag(int tagNumber, byte tagClass, TagType tagType, int tagSize);  Tag(byte[] binary, int offset); int getTagNumber(); byte getTagClass(); TagType getTagType(); int getTagSize(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final byte UNIVERSAL; static final byte APPLICATION; static final byte CONTEXT; static final byte PRIVATE; }