private byte[] windowsAbsolutePath(){
  ByteArrayOutputStream bstream=new ByteArrayOutputStream();
  bstream.write(WINDOWS_ROOT_PATH,0,WINDOWS_ROOT_PATH.length - 1);
  StringTokenizer tokenizer=new StringTokenizer(absolutePath(),"/");
  while (tokenizer.hasMoreTokens()) {
    bstream.write((byte)'\\');
    String nextName=tokenizer.nextToken();
    byte[] windowsNextName=toWindowsName(nextName);
    bstream.write(windowsNextName,0,windowsNextName.length - 1);
  }
  bstream.write(0);
  return bstream.toByteArray();
}

private byte [ ] windowsAbsolutePath ( ) { ByteArrayOutputStream bstream = new ByteArrayOutputStream ( ) ; bstream . write ( WINDOWS_ROOT_PATH , 0 , WINDOWS_ROOT_PATH . length - 1 ) ; StringTokenizer tokenizer = new StringTokenizer ( absolutePath ( ) , "/" ) ; while ( tokenizer . hasMoreTokens ( ) ) { bstream . write ( ( byte ) '\\' ) ; String nextName = tokenizer . nextToken ( ) ; byte [ ] windowsNextName = toWindowsName ( nextName ) ; bstream . write ( windowsNextName , 0 , windowsNextName . length - 1 ) ; } bstream . write ( 0 ) ; return bstream . toByteArray ( ) ; }
returns windows absolute path of the current node as a byte array . java " / " separator is transformed into windows " \ " .
