text stringlengths 3 1.18M |
|---|
package org.cms.entities;
import javax.persistence.Embeddable;
import java.io.Serializable;
/**
* Created by elnoa on 31/10/14.
*/
@Embeddable
public class AttendeeId implements Serializable{
private String name;
private String email;
public AttendeeId() {
}
public AttendeeId(String name, Stri... |
package org.cms.entities;
/**
* Created by elnoa on 22/10/14.
*/
public class CalendarUser {
}
|
package wotd;
import java.io.IOException;
public interface BibleQuery {
String query(String passage) throws IOException;
} |
package wotd.esv;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.logging.Logger;
import wotd.BibleQuery;
public class Es... |
package wotd;
import java.io.IOException;
/**
* Retrieves a passage.
*
* @author anthony
*/
public interface VerseLookup {
/**
* Spools a series of verses one at a time.
*/
public interface VerseSpooler {
/**
* Invoked when the next verse is available.
* @param next the next verse
... |
package wotd.web;
import com.google.appengine.repackaged.com.google.common.util.Base64;
import com.google.appengine.repackaged.com.google.common.util.Base64DecoderException;
public class FacebookUser {
public FacebookUser(String request) throws Base64DecoderException {
String[] parts = request.split(".");... |
package wotd.web;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
impo... |
package wotd.web;
import wotd.BibleQuery;
import wotd.VerseLookup;
import wotd.GCacheVerseLookup;
import wotd.esv.EsvQuery;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.servlet.GuiceServletContextListener;
import com.go... |
package wotd.web;
import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import wotd.BibleQuery;
import com.google.inject.Inject;
import com.google.inject.Singleton;
@Singleton
@SuppressWarnings("... |
package wotd.web;
import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import wotd.VerseLookup;
import com.google.inject.Inject;
import com.google.inject.Singleton;
@Singleton
@SuppressWarnings(... |
package wotd.web;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import wotd.VerseLookup;
import wotd.VerseLookup.VerseSpooler;
... |
package wotd;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import net.sf.jsr107cache.Cache;
import net.sf.jsr107cache.CacheException... |
package cn.org.eagle_framework.generator;
public interface GeneratorConstants {
/** 用于控制存放在生成器中的工具类,以便在模板中使用 StringUtils */
public String GENERATOR_TOOLS_CLASS = "generator_tools_class";
public String GENERATOR_INCLUDES = "generator_includes";
public String GENERATOR_EXCLUDES = "generator_excludes";
... |
package cn.org.eagle_framework.generator;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.sql.Connection;
import ... |
package cn.org.eagle_framework.generator;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import cn.org.eagle_framework.generator.util.GLogger;
import cn.org.eagle_framework.generator.util.PropertiesHelpe... |
package cn.org.eagle_framework.generator;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import org.dom4j.QName;
import org.dom4j.io... |
package cn.org.eagle_framework.generator;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import cn.org.eagle_framework.generator.provider.db.DataSourceProvider;
/**
* @Copyright @ 2013
* All right reserved
* @version 创建时间:Created on 2013-3-7
* @author 作者:Create by... |
package cn.org.eagle_framework.generator;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import java.ut... |
package cn.org.eagle_framework.generator;
import cn.org.eagle_framework.generator.util.UnicodeConverter;
/**
*
* @author poetic
* @email badqiu(a)gmail.com
*/
public class GeneratorMain {
/**
* 请直接修改以下代码调用不同的方法以执行相关生成任务.
*/
public static void main(String[] args) throws Exception {
Gener... |
package cn.org.eagle_framework.generator;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import cn.org.eagle_framework.generator.provider.db.DataSourceProvider;
i... |
package cn.org.eagle_framework.generator;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashSet;
import ... |
package cn.org.eagle_framework.generator.ext;
import java.io.File;
import java.util.Scanner;
import cn.org.eagle_framework.generator.GeneratorFacade;
import cn.org.eagle_framework.generator.GeneratorProperties;
import cn.org.eagle_framework.generator.util.ArrayHelper;
import cn.org.eagle_framework.generator.u... |
package cn.org.eagle_framework.generator.provider.db.sql;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashSet;
import ja... |
package cn.org.eagle_framework.generator.provider.db.sql.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import cn.org.eagle_framework.generator.GeneratorConstants;
import cn.org.eagle_framework.generator.Genera... |
package cn.org.eagle_framework.generator.provider.db.sql.model;
import cn.org.eagle_framework.generator.provider.db.table.model.Column;
import cn.org.eagle_framework.generator.util.BeanHelper;
import cn.org.eagle_framework.generator.util.StringHelper;
import cn.org.eagle_framework.generator.util.typemapping.JavaP... |
package cn.org.eagle_framework.generator.provider.db;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.sql.DataSource;
import cn.org.eagle_framework.generator.GeneratorConstants;
import cn.org.eagle_framework.generator.Generat... |
package cn.org.eagle_framework.generator.provider.db.table;
import java.io.File;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import jav... |
package cn.org.eagle_framework.generator.provider.db.table.model;
import java.util.List;
import cn.org.eagle_framework.generator.GeneratorProperties;
import cn.org.eagle_framework.generator.provider.db.table.model.ForeignKey.ReferenceKey;
import cn.org.eagle_framework.generator.provider.db.table.model.util.... |
/*
* Created on Jan 1, 2005
*
*/
package cn.org.eagle_framework.generator.provider.db.table.model;
import java.util.List;
import cn.org.eagle_framework.generator.provider.db.table.TableFactory;
import cn.org.eagle_framework.generator.util.ListHashtable;
import cn.org.eagle_framework.generator.util.Stri... |
package cn.org.eagle_framework.generator.provider.db.table.model;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import cn.org.eagle_framework.generator.GeneratorBiz;
import cn.org.eagle_framework.generator.Gen... |
package cn.org.eagle_framework.generator.provider.db.table.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.List;
import cn.org.eagle_framework.generator.util.StringHelper;
/**
* 包含一组Column对象的容器类
* @author badqiu
*
*/
public class Column... |
/*
* Created on Jan 6, 2005
*
*/
package cn.org.eagle_framework.generator.provider.db.table.model;
import cn.org.eagle_framework.generator.util.ListHashtable;
/**
* @author Richard
* This class contains a list of all the tables for which foreign keys
* exist for the containing SqlTable. It contains a... |
package cn.org.eagle_framework.generator.provider.db.table.model.util;
import cn.org.eagle_framework.generator.provider.db.table.model.Column;
import cn.org.eagle_framework.generator.util.typemapping.DatabaseDataTypesUtils;
public class ColumnHelper {
public static String[] removeHibernateValidatorSpecialTa... |
package cn.org.eagle_framework.generator.provider.db.table.model;
import java.util.ArrayList;
import java.util.List;
/**
* 包含一组 Table对象的容器类
* @author badqiu
*
*/
public class TableSet implements java.io.Serializable{
private static final long serialVersionUID = -6500047411657968878L;
private List... |
package cn.org.eagle_framework.generator.provider.java.model;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import cn.org.eagle_framework.generator.util.IOHe... |
package cn.org.eagle_framework.generator.provider.java.model;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import cn.org.eagle_framework.generator.util.typemapping.ActionScriptDataTypesUtils;
public class JavaField {
private Field field;
private JavaClass clazz; //与field相关联的clas... |
package cn.org.eagle_framework.generator.provider.java.model;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import cn.org.eagle_framework.generator.util.typemapping.ActionScriptDataTypesUtils;
import cn.org.eagle_framework.generator.util.typemapping.JavaPrimitiveTypeMapping;
public c... |
package cn.org.eagle_framework.generator.provider.java.model;
import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.... |
/**
* project:pomer
*
* Copyright 2008 [pomer], Inc. All rights reserved.
* Website: http://www.pomer.org.cn/
*
*/
package cn.org.eagle_framework.generator.provider.java.model;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Link... |
package cn.org.eagle_framework.generator;
public class EagleInfo {
}
|
package cn.org.eagle_framework.generator.util;
import java.io.PrintStream;
public class GLogger {
public static final int TRACE = 60;
public static final int DEBUG = 70;
public static final int INFO = 80;
public static final int WARN = 90;
public static final int ERROR = 100;
public static int logLe... |
package cn.org.eagle_framework.generator.util.typemapping;
import java.sql.Types;
import java.util.HashMap;
/**
*
* @author badqiu
* @email badqiu(a)gmail.com
*/
public class DatabaseDataTypesUtils {
private final static IntStringMap _preferredJavaTypeForSqlType = new IntStringMap();
public s... |
package cn.org.eagle_framework.generator.util.typemapping;
import java.util.Set;
import java.util.TreeSet;
import cn.org.eagle_framework.generator.provider.java.model.JavaClass;
import cn.org.eagle_framework.generator.util.StringHelper;
public class JavaImport {
TreeSet<String> imports = new TreeSet<Str... |
package cn.org.eagle_framework.generator.util.typemapping;
import java.util.HashMap;
import java.util.Map;
import cn.org.eagle_framework.generator.util.StringHelper;
public class JavaPrimitiveTypeMapping {
static Map<String, String> wraper2primitive = new HashMap();
static Map<String, String> primitive2wr... |
/**
* project:pomer
*
* Copyright 2008 [pomer], Inc. All rights reserved.
* Website: http://www.pomer.org.cn/
*
*/
package cn.org.eagle_framework.generator.util.typemapping;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 描述java类型和as类型对应关系
*
* @author Linlin Yu... |
package cn.org.eagle_framework.generator.util.typemapping;
public class DatabaseTypeUtils {
public static String getDatabaseTypeByJdbcDriver(String driver) {
if(driver == null) {
return null;
}
driver = driver.toLowerCase();
if(driver.indexOf("mysql") >= 0) {
return "mysql";
}
if(dri... |
package cn.org.eagle_framework.generator.util.typemapping;
import java.sql.Types;
/**
* 用于ibatis的JdbcType
* @author badqiu
*/
public enum JdbcType {
BIT(Types.BIT),
TINYINT(Types.TINYINT),
SMALLINT(Types.SMALLINT),
INTEGER(Types.INTEGER),
BIGINT(Types.BIGINT),
FLOAT(Types.FLOAT),
REAL(... |
package cn.org.eagle_framework.generator.util;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
imp... |
/*
* Created on Nov 23, 2004
*
*/
package cn.org.eagle_framework.generator.util;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
/**
* @author MF1180
* Hashtable that maintains the input order of the data elements - Note
* only put, putall, clear and remove maintains ... |
package cn.org.eagle_framework.generator.util;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
public class DBHelper {
public static void close(Connection conn) {
if(conn != null) {
try {
conn.close();
}catch(Exception ... |
package cn.org.eagle_framework.generator.util;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.Properties;
import java.util.Set;
import java.util.Map.... |
package cn.org.eagle_framework.generator.util.sqlparse;
import cn.org.eagle_framework.generator.util.StringHelper;
public class SqlTypeChecker {
/**
* 当前的sourceSql是否是select语句
* @return
*/
public static boolean isSelectSql(String sourceSql) {
return StringHelper.removeXMLCdataTag(SqlParseHelper.r... |
package cn.org.eagle_framework.generator.util.sqlparse;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import cn.org.eagle_framework.generator.util.StringHelper;
public class ResultSetMetaDataHolder {
public ResultSetMetaDataHolder() {
}
public ResultSetMetaDataHolder(ResultSetMetaData... |
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red ... |
package cn.org.eagle_framework.generator.util.sqlparse;
import java.io.StringReader;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.LinkedHashSet;
import java.util.Random;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import cn.org.ea... |
/*
* Copyright 2002-2008 the original author or authors.
*
* 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 ap... |
package cn.org.eagle_framework.generator.util.sqlparse;
public class StatementCreatorUtils {
// private static void setParameterValueInternal(PreparedStatement ps, int paramIndex,
// int sqlType, Integer scale,
// ... |
/*
* Copyright 2002-2008 the original author or authors.
*
* 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 ap... |
/***
*
* Portions Copyright (c) 2007 Paul Hammant
* Portions copyright (c) 2000-2007 INRIA, France Telecom
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source... |
/***
*
* Copyright (c) 2007 Paul Hammant
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/***
*
* Copyright (c) 2007 Paul Hammant
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
package cn.org.eagle_framework.generator.util.paranamer;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
... |
/***
*
* Copyright (c) 2007 Paul Hammant
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/***
*
* Copyright (c) 2007 Paul Hammant
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/***
*
* Copyright (c) 2007 Paul Hammant
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/*
* Copyright 2007 Paul Hammant
* Copyright 2007 ThinkTank Maths Limited
*
* ThinkTank Maths Limited grants a non-revocable, perpetual licence
* to Paul Hammant for unlimited use, relicensing and redistribution. No
* explicit permission is required from ThinkTank Maths Limited for
* any future decisions made w... |
/***
*
* Copyright (c) 2007 Paul Hammant
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
package cn.org.eagle_framework.generator.util;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.Writer;
import java.util.ArrayList;
impo... |
package cn.org.eagle_framework.generator.util;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.List;
public class GeneratorException extends RuntimeException{
public List<Exception> exceptions = new ArrayList();
public... |
package cn.org.eagle_framework.generator.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
i... |
package cn.org.eagle_framework.generator.util;
public class ClassHelper {
public static Object newInstance(Class<?> c) {
try {
return c.newInstance();
} catch (Exception e) {
throw new IllegalArgumentException(
"cannot new instance with class:" + c.getName(), e);
}
}
public static Ob... |
package cn.org.eagle_framework.generator.util;
public class ArrayHelper {
public static String getValue(String[] array, int indexOf) {
return getValue(array, indexOf,null);
}
public static String getValue(String[] array, int indexOf, String defaultValue) {
if(array.length - 1 >= indexOf) {
retur... |
/*
* Copyright 2002-2009 the original author or authors.
*
* 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 ap... |
package cn.org.eagle_framework.generator.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.StringTokenizer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import cn.org.eagle_framework.generato... |
package cn.org.eagle_framework.generator.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.u... |
package cn.org.eagle_framework.generator.util;
public class SystemHelper {
public static boolean isWindowsOS = System.getProperty("os.name").toLowerCase().indexOf("windows")>= 0;
}
|
/*
* Copyright 2002-2009 the original author or authors.
*
* 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 ap... |
package cn.org.eagle_framework.generator.util;
import java.sql.Timestamp;
/**
*
* @author badqiu
*
*/
public class TestDataGenerator {
public String getDBUnitTestData(String columnName,String javaType, int size) {
if(size <= 0) size = 2;
int MAX_SIZE = 3;
if(javaType.indexOf("Boolean") ... |
package cn.org.eagle_framework.generator.util;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
impor... |
package cn.org.eagle_framework.generator.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;... |
package cn.org.eagle_framework.generator.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
public class DateHelper {
public static Date parseDate(String value,Class targetType,String... formats) {
for(String format : format... |
package cn.org.eagle_framework.generator.util;
/**
* @Copyright @ 2013 All right reserved
* @version 创建时间:Created on 2013-3-22
* @author 作者:Create by www.360buyli.com
* @Email: 360buyli@gmail.com
* @description eclipse注释模板
*/
public class UnicodeConverter {
public static void main(String[] args) {
... |
/*
* Copyright 2002-2009 the original author or authors.
*
* 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 ap... |
package net.coobird.thumbnailator;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
import net.coobird.thumbnailator.filters.ImageFilter;
import net.coobird.thumbnailator.resizers.FixedResizerFactory;
import net.coobird.thumbnailator.geometry.... |
package net.coobird.thumbnailator.makers;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.util.HashMap;
import java.util.Map;
import net.coobird.thumbnailator.builders.BufferedImageBuilder;
import net.coobird.thumbnailator.resizers.FixedResizerFactory;
import net.coobird.thumbnail... |
package net.coobird.thumbnailator.makers;
import java.awt.image.BufferedImage;
/**
* A {@link ThumbnailMaker} which resizes an image to a specified dimension
* when producing a thumbnail.
* <p>
* Optionally, if the aspect ratio of the thumbnail is to be maintained the same
* as the original image (by ca... |
/**
* This package provides classes which can be used to make thumbnails given
* parameters to create the images.
*/
package net.coobird.thumbnailator.makers;
|
package net.coobird.thumbnailator.makers;
import java.awt.image.BufferedImage;
/**
* A {@link ThumbnailMaker} which scales an image by a specified scaling factor
* when producing a thumbnail.
* <p>
* Upon calculating the size of the thumbnail, if any of the dimensions are
* {@code 0}, then that dimensio... |
package net.coobird.thumbnailator.geometry;
import java.awt.Point;
/**
* This interface is implemented by classes which calculate how to position an
* object inside of an enclosing object.
*
* @author coobird
*
*/
public interface Position
{
/**
* Calculates the position of an object enclosed ... |
package net.coobird.thumbnailator.geometry;
import java.awt.Point;
/**
* This class calculates the position of an image which is to be enclosed,
* using an absolute coordinate at which the image should be located.
*
* @author coobird
*
*/
public final class Coordinate implements Position
{
/**
... |
/**
* This package contains classes used to specify positioning of watermarks and
* other objects in Thumbnailator.
*/
package net.coobird.thumbnailator.geometry;
|
package net.coobird.thumbnailator.geometry;
import java.awt.Dimension;
/**
* A {@link Size} object which indicates that the size of the enclosed object
* should be the specified absolute size.
*
* @author coobird
* @since 0.3.4
*
*/
public class AbsoluteSize implements Size
{
/**
* The size ... |
package net.coobird.thumbnailator.geometry;
import java.awt.Dimension;
/**
* Calculates the size of an enclosed object relative to the enclosing object.
*
* @author coobird
* @since 0.3.4
*
*/
public class RelativeSize implements Size
{
/**
* The scaling factor to use for the enclosed object.
... |
package net.coobird.thumbnailator.geometry;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
/**
* A representation of a region, using a {@link Position} object and a
* {@link Dimension} object.
*
* @author coobird
* @since 0.3.4
*
*/
public final class Region
{
/*... |
package net.coobird.thumbnailator.geometry;
import java.awt.Point;
import net.coobird.thumbnailator.filters.Caption;
import net.coobird.thumbnailator.filters.ImageFilter;
import net.coobird.thumbnailator.filters.Watermark;
/**
* An enum of predefined {@link Position}s.
* <p>
* Primary use of this enum ... |
package net.coobird.thumbnailator.geometry;
import java.awt.Dimension;
/**
* This interface is implemented by classes which calculate the size of an
* object inside of an enclosing object.
*
* @author coobird
* @since 0.3.4
*
*/
public interface Size
{
/**
* Calculates the size of the object... |
package net.coobird.thumbnailator;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.util.ArrayL... |
/**
* This package contains classes which provide the core functionalities of
* Thumbnailator.
*/
package net.coobird.thumbnailator;
|
package net.coobird.thumbnailator.tasks;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import net.coobird.thumbnailator.ThumbnailParameter;
import net.coobird.thumbnailator.tasks.io.FileImageSink;
import net.coobird.thumbnailator.tasks.io.FileImageSource;
/**
* A t... |
package net.coobird.thumbnailator.tasks;
import java.io.IOException;
/**
* An exception used to indicate that the specified format could not be
* used in an operation.
*
* @author coobird
*
*/
public class UnsupportedFormatException extends IOException
{
/**
* An ID used for serialization.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.