You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2008/08/30 00:11:30 UTC

svn commit: r690405 [11/26] - in /incubator/uima/uimaj/trunk/uimaj-core: ./ src/main/java/org/apache/uima/ src/main/java/org/apache/uima/analysis_component/ src/main/java/org/apache/uima/analysis_engine/ src/main/java/org/apache/uima/analysis_engine/an...

Modified: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/StringHeapDeserializationHelper.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/StringHeapDeserializationHelper.java?rev=690405&r1=690404&r2=690405&view=diff
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/StringHeapDeserializationHelper.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/StringHeapDeserializationHelper.java Fri Aug 29 15:10:52 2008
@@ -1,60 +1,60 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.uima.cas.impl;
-
-/**
- * Support for legacy string heap format.  Used only for (de)serialization.
- */
-public class StringHeapDeserializationHelper {
-
-  // Number of cells in string ref heap: 1 for start of string, 1 for length of string, and 1 if
-  // String is in string list, not on heap.
-  protected static final int REF_HEAP_CELL_SIZE = 3;
-
-  // First position in a cell: where string starts on heap
-  protected static final int CHAR_HEAP_POINTER_OFFSET = 0;
-
-  // Second position in a cell: how long string on heap is
-  protected static final int CHAR_HEAP_STRLEN_OFFSET = 1;
-
-  // Third position in a cell: if the string is a real Java string, the position of that string
-  // in the string list.  This is not used for serialization and kept here only for documentation
-  // purposes.
-  protected static final int STRING_LIST_ADDR_OFFSET = 2;
-
-  // Start pos so that first returned string code is 1.
-  protected static final int FIRST_CELL_REF = 3;
-
-  protected int refHeapPos = FIRST_CELL_REF;
-
-  // The 3-ints-per-cell reference heap
-  protected int[] refHeap;
-
-  // Current position in the character heap, meaningless
-  protected int charHeapPos = 0;
-
-  // Heap with the actual character data
-  protected char[] charHeap;
-
-  public StringHeapDeserializationHelper() {
-    super();
-  }
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.cas.impl;
+
+/**
+ * Support for legacy string heap format.  Used only for (de)serialization.
+ */
+public class StringHeapDeserializationHelper {
+
+  // Number of cells in string ref heap: 1 for start of string, 1 for length of string, and 1 if
+  // String is in string list, not on heap.
+  protected static final int REF_HEAP_CELL_SIZE = 3;
+
+  // First position in a cell: where string starts on heap
+  protected static final int CHAR_HEAP_POINTER_OFFSET = 0;
+
+  // Second position in a cell: how long string on heap is
+  protected static final int CHAR_HEAP_STRLEN_OFFSET = 1;
+
+  // Third position in a cell: if the string is a real Java string, the position of that string
+  // in the string list.  This is not used for serialization and kept here only for documentation
+  // purposes.
+  protected static final int STRING_LIST_ADDR_OFFSET = 2;
+
+  // Start pos so that first returned string code is 1.
+  protected static final int FIRST_CELL_REF = 3;
+
+  protected int refHeapPos = FIRST_CELL_REF;
+
+  // The 3-ints-per-cell reference heap
+  protected int[] refHeap;
+
+  // Current position in the character heap, meaningless
+  protected int charHeapPos = 0;
+
+  // Heap with the actual character data
+  protected char[] charHeap;
+
+  public StringHeapDeserializationHelper() {
+    super();
+  }
+
+}

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/StringHeapDeserializationHelper.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/StringMap.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/StringTypeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/Subiterator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeNameSpaceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystem2Xml.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemUtils.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/UnambiguousIteratorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/XCASDeserializer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/XCASParsingException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/XCASSerializer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/XMLTypeSystemConsts.java
------------------------------------------------------------------------------
    svn:eol-style = native