@@ -0,0 +1,1911 @@
+package cologne.eck.peafactory.peagen;%0A%0A/*%0A * Peafactory - Production of Password Encryption Archives%0A * Copyright (C) 2015  Axel von dem Bruch%0A * %0A * This library is free software; you can redistribute it and/or modify it %0A * under the terms of the GNU General Public License as published %0A * by the Free Software Foundation; either version 2 of the License, %0A * or (at your option) any later version.%0A * This library is distributed in the hope that it will be useful, but %0A * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY %0A * or FITNESS FOR A PARTICULAR PURPOSE. %0A * See the GNU General Public License for more details.%0A * See:  http://www.gnu.org/licenses/gpl-2.0.html%0A * You should have received a copy of the GNU General Public License %0A * along with this library.%0A */%0A%0A/**%0A * Abstract class, parent class of type classes of peas. %0A */%0A%0Aimport java.io.File;%0A%0Aimport cologne.eck.peafactory.peas.file_pea.FileType;%0A%0A/* Every child of DataType holds a static variable with its specific data type. %0A * %0A * Every child contains type specific functions. %0A */%0A%0Apublic abstract class DataType %7B%0A%09%0A%09private static DataType dataType = new FileType();%0A%09%09%0A%09%0A%09public abstract String getDescription();%0A%09public abstract String getTypeName();%0A%09%0A%09public abstract void processData(byte%5B%5D keyMaterial);%0A%09public abstract byte%5B%5D getData();%0A%09public abstract void setData(byte%5B%5D data);%0A%09%0A%0A%09%0A%09// delete all files and directories in this directory%0A%09protected static final void clearDirectory(File dir) %7B%0A%09    for (File file: dir.listFiles()) %7B%0A%09        if (file.isDirectory()) clearDirectory(file);%0A%09        file.delete();%0A%09    %7D%0A%09%7D%0A%09%0A%09//====================================%0A%09// Getter & Setter%0A%09public final static DataType getCurrentType() %7B // used in Main%0A%09%09return dataType;%0A%09%7D%0A%09public final static void setCurrentType(DataType _dataType) %7B // used in ProjectSelection%0A%09%09dataType = _dataType;%0A%09%7D%0A%7D%0A

Create DataType.java