Java Hex String Create appendHexDumpRowPrefix(StringBuilder dump, int row, int rowStartIndex)

Here you can find the source of appendHexDumpRowPrefix(StringBuilder dump, int row, int rowStartIndex)

Description

append Hex Dump Row Prefix

License

Open Source License

Declaration

private static void appendHexDumpRowPrefix(StringBuilder dump, int row, int rowStartIndex) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static final String NEWLINE = "\n";

    private static void appendHexDumpRowPrefix(StringBuilder dump, int row, int rowStartIndex) {
        dump.append(NEWLINE);//from w  w  w . ja va  2  s.c o  m
        dump.append(Long.toHexString(rowStartIndex & 0xFFFFFFFFL | 0x100000000L));
        dump.setCharAt(dump.length() - 9, '|');
        dump.append('|');
    }
}

Related

  1. appendHex(StringBuilder buff, int i)
  2. appendHex(StringBuilder builder, int b)
  3. appendHexByte(byte b, StringBuffer buf)
  4. appendHexByte(final StringBuilder sb, final byte b)
  5. appendHexBytes(StringBuilder builder, byte[] bytes)
  6. appendHexEntity(final StringBuilder out, final char value)
  7. appendHexEscape(StringBuilder out, int codePoint)
  8. appendHexJavaScriptRepresentation(StringBuilder sb, char c)
  9. appendHexNumber(StringBuffer target, byte b)