TopoWeb Commons API

org.topoweb.util
Class ArrayToString

java.lang.Object
  |
  +--org.topoweb.util.ArrayToString
Direct Known Subclasses:
ArrayToString.AsciiBytes

public class ArrayToString
extends java.lang.Object

Utility class for creating string representations of different types of arrays. Primarily used for debugging. Efficiency is not the goal.


Nested Class Summary
static class ArrayToString.AsciiBytes
           
 
Constructor Summary
ArrayToString()
           
 
Method Summary
 java.lang.String convert(double[] d)
           
 java.lang.String convert(long[] l)
           
 java.lang.String convert(java.lang.Object[] o)
           
protected  java.lang.String getComponents(double[] d)
           
protected  java.lang.String getComponents(long[] l)
           
protected  java.lang.String getComponents(java.lang.Object[] array)
           
protected  java.lang.String getHead(java.lang.Object array, int len)
           
protected  java.lang.String getTail(java.lang.Object array)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayToString

public ArrayToString()
Method Detail

convert

public java.lang.String convert(java.lang.Object[] o)

convert

public java.lang.String convert(long[] l)

convert

public java.lang.String convert(double[] d)

getHead

protected java.lang.String getHead(java.lang.Object array,
                                   int len)

getComponents

protected java.lang.String getComponents(java.lang.Object[] array)

getComponents

protected java.lang.String getComponents(long[] l)

getComponents

protected java.lang.String getComponents(double[] d)

getTail

protected java.lang.String getTail(java.lang.Object array)

TopoWeb Commons API

Copyright (C) 2002 Babak Farhang

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.