coffeepot.bean.wr.writer.ObjectWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coffeepot-bean-wr Show documentation
Show all versions of coffeepot-bean-wr Show documentation
Coffeepot-bean-wr is a simple Java framework for marshalling Java beans to flat file and unmarshal flat file to Java Beans
/*
* Copyright 2013 - Jeandeson O. Merelis
*/
package coffeepot.bean.wr.writer;
/*
* #%L
* coffeepot-bean-wr
* %%
* Copyright (C) 2013 Jeandeson O. Merelis
* %%
* 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.
* #L%
*/
import coffeepot.bean.wr.mapper.Callback;
import coffeepot.bean.wr.types.FormatType;
import coffeepot.bean.wr.mapper.ObjectMapperFactory;
import coffeepot.bean.wr.mapper.RecordModel;
import coffeepot.bean.wr.mapper.UnresolvedObjectMapperException;
import java.io.IOException;
import java.io.Writer;
/**
*
* @author Jeandeson O. Merelis
*/
public interface ObjectWriter {
public FormatType getFormatType();
public ObjectMapperFactory getObjectMapperFactory();
public void write(Object obj) throws IOException;
public void write(Object obj, String recordGroupId) throws IOException;
public void flush() throws IOException;
public void close() throws IOException;
public int getAutoFlush();
public void setAutoFlush(int recordCounts);
public Writer getWriter();
public void setWriter(Writer w);
public void clearMappers();
public Callback getCallback();
public void setCallback(Callback callback);
public void createMapper(Class> clazz) throws UnresolvedObjectMapperException, NoSuchFieldException, Exception;
public void createMapper(Class> clazz, String recordGroupId) throws UnresolvedObjectMapperException, NoSuchFieldException, Exception;
public int getVersion();
public void setVersion(int version);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy