private void promptPreamble(byte[] preamble) { if (preamble == null) return; StringBuilder line = new StringBuilder(width); line.append("0: ["); if (VR.OB.prompt(preamble, false, null, width - 5, line)) line.append(']'); System.out.println(line); }
private void promptPreamble(byte[] preamble) { if (preamble == null) return; StringBuilder line = new StringBuilder(width); line.append("0: ["); if (VR.OB.prompt(preamble, false, null, width - 5, line)) line.append(']'); System.out.println(line); }
private StringBuilder appendAttribute(String privateCreator, int tag, VR vr, Object value, int maxLength, StringBuilder sb, String prefix) { sb.append(prefix).append(TagUtils.toString(tag)).append(' ').append(vr).append(" ["); if (vr.prompt(value, bigEndian, getSpecificCharacterSet(vr), maxLength - sb.length() - 1, sb)) { sb.append("] ").append(ElementDictionary.keywordOf(tag, privateCreator)); if (sb.length() > maxLength) sb.setLength(maxLength); } sb.append('\n'); return sb; }
private void appendFragment(StringBuilder line, DicomInputStream dis, VR vr) throws IOException { byte[] b = dis.readValue(); line.append(" ["); if (vr.prompt(b, dis.bigEndian(), null, width - line.length() - 1, line)) { line.append(']'); appendKeyword(dis, line); } }
private void appendFragment(StringBuilder line, DicomInputStream dis, VR vr) throws IOException { byte[] b = dis.readValue(); line.append(" ["); if (vr.prompt(b, dis.bigEndian(), null, width - line.length() - 1, line)) { line.append(']'); appendKeyword(dis, line); } }
sb.append(' ').append(vr.vr); sb.append(" ["); vr.vr.prompt(value, attrs.bigEndian(), attrs.getSpecificCharacterSet(vr.vr), 200, sb);
byte[] b = dis.readValue(); line.append(" ["); if (vr.prompt(b, dis.bigEndian(), attrs.getSpecificCharacterSet(), width - line.length() - 1, line)) {
byte[] b = dis.readValue(); line.append(" ["); if (vr.prompt(b, dis.bigEndian(), attrs.getSpecificCharacterSet(), width - line.length() - 1, line)) {