[Pocketgames-devel] SF.net SVN: pocketgames: [207] libraries/cab/src/org/pocketgames/cab/ installd
Status: Beta
Brought to you by:
idominguez
|
From: <ido...@us...> - 2008-01-12 03:47:47
|
Revision: 207
http://pocketgames.svn.sourceforge.net/pocketgames/?rev=207&view=rev
Author: idominguez
Date: 2008-01-11 19:45:55 -0800 (Fri, 11 Jan 2008)
Log Message:
-----------
Empty printer
Added Paths:
-----------
libraries/cab/src/org/pocketgames/cab/installdata/backend/PrinterREGKEY.java
Added: libraries/cab/src/org/pocketgames/cab/installdata/backend/PrinterREGKEY.java
===================================================================
--- libraries/cab/src/org/pocketgames/cab/installdata/backend/PrinterREGKEY.java (rev 0)
+++ libraries/cab/src/org/pocketgames/cab/installdata/backend/PrinterREGKEY.java 2008-01-12 03:45:55 UTC (rev 207)
@@ -0,0 +1,23 @@
+package org.pocketgames.cab.installdata.backend;
+import org.pocketgames.cab.installdata.data.*;
+import static org.pocketgames.cab.installdata.Word.toWord16;
+import static org.pocketgames.cab.installdata.Word.toWord32;
+
+public class PrinterREGKEY
+{
+ public static byte[] print (REGKEY r)
+ {
+ // int len = 8 + r.getName().length() + 2;
+ // byte[] ret = new byte[len];
+ byte[] ret = new byte[0];
+ // System.arraycopy (toWord16 (r.getId()), 0, ret, 0, 2);
+ // System.arraycopy (toWord16 (r.getRoot()), 0, ret, 2, 2);
+ // System.arraycopy (toWord16 (r.getIgnore()), 0, ret, 4, 2);
+ // System.arraycopy (toWord16 (r.getName().length() + 2), 0, ret, 6, 2);
+ // byte[] st = r.getName().getBytes();
+ // System.arraycopy (st, 0, ret, 8, r.getName().length());
+ // ret[len-2] = 0;
+ // ret[len-1] = 0;
+ return ret;
+ }
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|