001package com.killcoding.file; 002 003import java.sql.Timestamp; 004import java.io.IOException; 005 006public abstract class FilePart { 007 008 protected abstract void process(int partIndex,byte[] buffer) throws IOException; 009 010 protected abstract void completed(int lastPartIndex,Timestamp modifyTime,long fileSize) throws IOException; 011 012 protected abstract void ended(int lastPartIndex,long fileSize); 013 014 public FilePart() { 015 super(); 016 } 017 018}