1 4 package com.openedit.page; 5 6 import java.io.InputStream ; 7 import java.text.ParseException ; 8 import java.text.SimpleDateFormat ; 9 import java.util.Date ; 10 11 import org.openedit.repository.ContentItem; 12 import org.openedit.repository.RepositoryException; 13 14 15 18 public class DateStampContentItem extends ContentItem 19 { 20 Date fieldDate; 21 22 public DateStampContentItem( String inDateString ) throws ParseException  23 { 24 SimpleDateFormat dateFormat = new SimpleDateFormat ( "MM/dd/yy" ); 25 fieldDate = dateFormat.parse( inDateString ); 26 } 27 28 public InputStream getInputStream() throws RepositoryException 29 { 30 return null; 32 } 33 34 public boolean exists() 35 { 36 return true; 38 } 39 40 public boolean isFolder() 41 { 42 return false; 44 } 45 46 public boolean isWritable() 47 { 48 return false; 50 } 51 52 } 53 | Popular Tags |