| Modifier and Type | Method and Description |
|---|---|
static Hex.HexCase |
Hex.HexCase.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Hex.HexCase[] |
Hex.HexCase.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static char[] |
Hex.bytesToHex(byte[] bytes,
Hex.HexCase caseType,
String delim)
Converts a byte array to its hexadecimal representation.
|
static String |
Hex.bytesToHexStr(byte[] bytes,
Hex.HexCase caseType)
Converts a byte array to its hexadecimal representation and returns
the result as a string.
|
static String |
Hex.bytesToHexStr(byte[] bytes,
Hex.HexCase caseType,
String delim)
Converts a byte array to its hexadecimal representation and returns
the result as a string.
|
static StringBuilder |
Hex.bytesToHexStr(byte[] bytes,
Hex.HexCase caseType,
StringBuilder sb)
Converts a byte array to its hexadecimal representation and appends
the result to the provided
StringBuilder. |
static StringBuilder |
Hex.bytesToHexStr(byte[] bytes,
Hex.HexCase caseType,
String delim,
StringBuilder sb)
Converts a byte array to its hexadecimal representation and appends
the result to the provided
StringBuilder. |
static void |
Hex.bytesToHexStreaming(InputStream is,
OutputStream os,
Hex.HexCase caseType,
String delim)
Converts a stream of bytes (from an InputStream) to its hexadecimal
character representation and writes the result to the provided
OutputStream.
|
static void |
Hex.bytesToHexStreaming(Path in,
Path out,
Hex.HexCase caseType,
String delim,
int maxCharsPerLine,
OpenOption... outOptions)
Converts the content of a file to its hexadecimal character
representation and writes the result to another file.
|
static char[] |
Hex.byteToHex(byte b,
Hex.HexCase caseType)
Converts a single byte to its hexadecimal representation.
|
static String[] |
HexDump.prettyPrint(byte[] input,
Hex.HexCase caseType,
int bytesPerLine,
int indent)
Dump hex output and return result as a String array where each string represents
a line of output.
|
static void |
HexDump.prettyPrint(byte[] input,
Hex.HexCase caseType,
int bytesPerLine,
int indent,
PrintStream ps)
Dump hex output and output into a PrintStream.
|
static String |
HexDump.prettyPrintStr(byte[] input,
Hex.HexCase caseType,
int bytesPerLine,
int indent)
Dump hex output and return result as a String.
|
static String |
HexDump.prettyPrintStr(byte[] input,
Hex.HexCase caseType,
int bytesPerLine,
int indent,
String lineSeparator)
Dump hex output and return result as a String.
|
Copyright © 2022 lbruun.net. All rights reserved.