frysk.sys.proc
Class TestLib

java.lang.Object
  extended by frysk.sys.proc.TestLib

public class TestLib
extends Object

Library of utilities useful when testing /proc based methods.


Constructor Summary
TestLib()
           
 
Method Summary
(package private) static byte[] stringsToBytes(String[] strings)
          Convert an array of strings into a NUL terminated, UNIX like, byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestLib

public TestLib()
Method Detail

stringsToBytes

static byte[] stringsToBytes(String[] strings)
Convert an array of strings into a NUL terminated, UNIX like, byte array. The raw byte array can then be fed to the /proc parsing routines as if it was read from disk.