Package org.djutils.decoderdumper
Class Base64Dumper
- java.lang.Object
- 
- org.djutils.decoderdumper.Dumper<Base64Dumper>
- 
- org.djutils.decoderdumper.Base64Dumper
 
 
- 
 public class Base64Dumper extends Dumper<Base64Dumper> Decode base64 encoded data and dump it in hexadecimal format and (insofar possible) as characters.Copyright (c) 2013-2021 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See DJUTILS License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Jan 7, 2019 
- Author:
- Alexander Verbraeck, Peter Knoppers
 
- 
- 
Constructor SummaryConstructors Constructor Description Base64Dumper()Construct a new Base64Dumper with initial address offset 0.Base64Dumper(int addressOffset)Construct a new Base64Dumper.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Stringbase64Dumper(byte[] bytes)Create a HexDumper object with addressOffset 0; use it to dump an array of bytes and return the dump as a String.static Stringbase64Dumper(int addressOffset, byte[] bytes)Create a HexDumper object; use it to dump an array of bytes and return the dump as a String.StringtoString()- 
Methods inherited from class org.djutils.decoderdumper.DumperaddDecoder, addDecoder, append, append, append, append, flush, getMaximumWidth, setOutputStream, setSuppressMultipleIdenticalLines
 
- 
 
- 
- 
- 
Method Detail- 
base64Dumperpublic static String base64Dumper(int addressOffset, byte[] bytes) Create a HexDumper object; use it to dump an array of bytes and return the dump as a String.- Parameters:
- addressOffset- int; address of the first byte
- bytes- byte[]; the bytes to hex-dump
- Returns:
- String; the hexadecimal and character dump of the base64 decoded bytes
 
 - 
base64Dumperpublic static String base64Dumper(byte[] bytes) Create a HexDumper object with addressOffset 0; use it to dump an array of bytes and return the dump as a String.- Parameters:
- bytes- byte[]; the bytes to hex-dump
- Returns:
- String; the hexadecimal and character dump of the base64 decoded bytes
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- Dumper<Base64Dumper>
 
 
- 
 
-