You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SimpleExportFilter.java 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. Copyright (c) 2007 Health Market Science, Inc.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package com.healthmarketscience.jackcess.util;
  14. import java.io.IOException;
  15. import java.util.List;
  16. import com.healthmarketscience.jackcess.Column;
  17. /**
  18. * Simple concrete implementation of ImportFilter which just returns the given
  19. * values.
  20. *
  21. * @author James Ahlborn
  22. * @usage _general_class_
  23. */
  24. public class SimpleExportFilter implements ExportFilter {
  25. public static final SimpleExportFilter INSTANCE = new SimpleExportFilter();
  26. public SimpleExportFilter() {
  27. }
  28. @Override
  29. public List<Column> filterColumns(List<Column> columns) throws IOException {
  30. return columns;
  31. }
  32. @Override
  33. public Object[] filterRow(Object[] row) throws IOException {
  34. return row;
  35. }
  36. }