Revision: 5973
          http://jnode.svn.sourceforge.net/jnode/?rev=5973&view=rev
Author:   lsantha
Date:     2013-02-23 13:46:07 +0000 (Sat, 23 Feb 2013)
Log Message:
-----------
Updated headers.

Modified Paths:
--------------
    trunk/fs/src/fs/org/jnode/fs/jfat/Fat16.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttribute.java
    
trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttributeNonRes.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttributeRes.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListBlock.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListEntry.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSAttribute.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSNonResidentAttribute.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSResidentAttribute.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexAllocationAttribute.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexBlock.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexEntry.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexEntryIterator.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexHeader.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexRoot.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexRootAttribute.java
    trunk/fs/src/fs/org/jnode/fs/ntfs/index/NTFSIndex.java

Modified: trunk/fs/src/fs/org/jnode/fs/jfat/Fat16.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/jfat/Fat16.java        2013-02-23 12:56:03 UTC 
(rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/jfat/Fat16.java        2013-02-23 13:46:07 UTC 
(rev 5973)
@@ -1,58 +1,78 @@
-package org.jnode.fs.jfat;
-
-import java.io.IOException;
-import org.jnode.driver.block.BlockDeviceAPI;
-
-/**
- * A FAT implementation for FAT-16.
- *
- * @author Luke Quinane
- */
-public class Fat16 extends Fat {
-    protected Fat16(BootSector bs, BlockDeviceAPI api) {
-        super(bs, api);
-    }
-
-    protected long offset(int index) {
-        return (long) (2 * index);
-    }
-
-    public int get(int index) throws IOException {
-        return (int) getUInt16(index);
-    }
-
-    public int set(int index, int element) throws IOException {
-        long old = getUInt16(index);
-
-        setInt16(index, element & 0xFFFF);
-
-        return (int) (old & 0x0000FFFF);
-    }
-
-    public long getClusterPosition(int index) {
-        BootSector bootSector = getBootSector();
-
-        long rootDirectoryOffset = bootSector.getFirstDataSector() * 
bootSector.getBytesPerSector();
-
-        if (index == 0) {
-            return rootDirectoryOffset;
-        }
-
-        // Need to account for the size of the root directory entry for 
following clusters
-        long filesOffset = rootDirectoryOffset + 
bootSector.getNrRootDirEntries() * 32;
-        return filesOffset + ((index - firstCluster()) * getClusterSize());
-    }
-
-    @Override
-    public boolean hasNext(int entry) {
-        return !isEofChain(entry);
-    }
-
-    public boolean isEofChain(int entry) {
-        return (entry >= 0xFFF8);
-    }
-
-    public int eofChain() {
-        return 0xFFF8;
-    }
-}
+/*
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
+ *
+ * Copyright (C) 2003-2013 JNode.org
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * This library 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 Lesser General Public 
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; If not, write to the Free Software Foundation, 
Inc., 
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+ 
+package org.jnode.fs.jfat;
+
+import java.io.IOException;
+import org.jnode.driver.block.BlockDeviceAPI;
+
+/**
+ * A FAT implementation for FAT-16.
+ *
+ * @author Luke Quinane
+ */
+public class Fat16 extends Fat {
+    protected Fat16(BootSector bs, BlockDeviceAPI api) {
+        super(bs, api);
+    }
+
+    protected long offset(int index) {
+        return (long) (2 * index);
+    }
+
+    public int get(int index) throws IOException {
+        return (int) getUInt16(index);
+    }
+
+    public int set(int index, int element) throws IOException {
+        long old = getUInt16(index);
+
+        setInt16(index, element & 0xFFFF);
+
+        return (int) (old & 0x0000FFFF);
+    }
+
+    public long getClusterPosition(int index) {
+        BootSector bootSector = getBootSector();
+
+        long rootDirectoryOffset = bootSector.getFirstDataSector() * 
bootSector.getBytesPerSector();
+
+        if (index == 0) {
+            return rootDirectoryOffset;
+        }
+
+        // Need to account for the size of the root directory entry for 
following clusters
+        long filesOffset = rootDirectoryOffset + 
bootSector.getNrRootDirEntries() * 32;
+        return filesOffset + ((index - firstCluster()) * getClusterSize());
+    }
+
+    @Override
+    public boolean hasNext(int entry) {
+        return !isEofChain(entry);
+    }
+
+    public boolean isEofChain(int entry) {
+        return (entry >= 0xFFF8);
+    }
+
+    public int eofChain() {
+        return 0xFFF8;
+    }
+}

Modified: 
trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttribute.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttribute.java     
2013-02-23 12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttribute.java     
2013-02-23 13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id: header.txt 5714 2010-01-03 13:33:07Z lsantha $
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: 
trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttributeNonRes.java
===================================================================
--- 
trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttributeNonRes.java   
    2013-02-23 12:56:03 UTC (rev 5972)
+++ 
trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttributeNonRes.java   
    2013-02-23 13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id: header.txt 5714 2010-01-03 13:33:07Z lsantha $
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: 
trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttributeRes.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttributeRes.java  
2013-02-23 12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListAttributeRes.java  
2013-02-23 13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id: header.txt 5714 2010-01-03 13:33:07Z lsantha $
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListBlock.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListBlock.java 
2013-02-23 12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListBlock.java 
2013-02-23 13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id: header.txt 5714 2010-01-03 13:33:07Z lsantha $
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListEntry.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListEntry.java 
2013-02-23 12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/AttributeListEntry.java 
2013-02-23 13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id: header.txt 5714 2010-01-03 13:33:07Z lsantha $
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSAttribute.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSAttribute.java      
2013-02-23 12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSAttribute.java      
2013-02-23 13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: 
trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSNonResidentAttribute.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSNonResidentAttribute.java   
2013-02-23 12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSNonResidentAttribute.java   
2013-02-23 13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSResidentAttribute.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSResidentAttribute.java      
2013-02-23 12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/attribute/NTFSResidentAttribute.java      
2013-02-23 13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexAllocationAttribute.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexAllocationAttribute.java       
2013-02-23 12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexAllocationAttribute.java       
2013-02-23 13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexBlock.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexBlock.java     2013-02-23 
12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexBlock.java     2013-02-23 
13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexEntry.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexEntry.java     2013-02-23 
12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexEntry.java     2013-02-23 
13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexEntryIterator.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexEntryIterator.java     
2013-02-23 12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexEntryIterator.java     
2013-02-23 13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexHeader.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexHeader.java    2013-02-23 
12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexHeader.java    2013-02-23 
13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexRoot.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexRoot.java      2013-02-23 
12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexRoot.java      2013-02-23 
13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexRootAttribute.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexRootAttribute.java     
2013-02-23 12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/index/IndexRootAttribute.java     
2013-02-23 13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published

Modified: trunk/fs/src/fs/org/jnode/fs/ntfs/index/NTFSIndex.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ntfs/index/NTFSIndex.java      2013-02-23 
12:56:03 UTC (rev 5972)
+++ trunk/fs/src/fs/org/jnode/fs/ntfs/index/NTFSIndex.java      2013-02-23 
13:46:07 UTC (rev 5973)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * $Id: header.txt 5972 2013-02-23 12:56:03Z lsantha $
  *
- * Copyright (C) 2003-2012 JNode.org
+ * Copyright (C) 2003-2013 JNode.org
  *
  * This library is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -173,4 +173,4 @@
             }
         }
     }
-}
\ No newline at end of file
+}

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Jnode-svn-commits mailing list
Jnode-svn-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits

Reply via email to