X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=server%2Fruntime%2Forg.argeo.server.jcr%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fjcr%2Ftabular%2FJcrTabularWriter.java;h=41fc827362d3aa6d60178364ad0bd36c27925157;hb=3252bf769ae3c37c8c68020676af374d5e77d74f;hp=0727b784e617507dd8e2dc171d1b671371fab91a;hpb=a473a5c7af8d33a931510dec4c93413a341da1d9;p=lgpl%2Fargeo-commons.git diff --git a/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/tabular/JcrTabularWriter.java b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/tabular/JcrTabularWriter.java index 0727b784e..41fc82736 100644 --- a/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/tabular/JcrTabularWriter.java +++ b/server/runtime/org.argeo.server.jcr/src/main/java/org/argeo/jcr/tabular/JcrTabularWriter.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2007-2012 Mathieu Baudier + * + * Licensed 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.argeo.jcr.tabular; import java.io.ByteArrayInputStream; @@ -24,11 +39,15 @@ public class JcrTabularWriter implements TabularWriter { private Node contentNode; private ByteArrayOutputStream out; private CsvWriter csvWriter; + + @SuppressWarnings("unused") + private final List columns; /** Creates a table node */ public JcrTabularWriter(Node tableNode, List columns, String contentNodeType) { try { + this.columns = columns; for (TabularColumn column : columns) { String normalized = JcrUtils.replaceInvalidChars(column .getName());