pusu.data
Class OutputFeedFactory

java.lang.Object
  extended by pusu.data.OutputFeedFactory

public class OutputFeedFactory
extends java.lang.Object

OutputFeedFactory luo halutun typpisiä OutputFeedejä.


Nested Class Summary
static class OutputFeedFactory.FeedType
          Järjestelmän tukemat syätemuodot.
 
Constructor Summary
OutputFeedFactory()
           
 
Method Summary
static OutputFeed createFeed(java.lang.String title, OutputFeedFactory.FeedType feedType)
          Luo uuden halutun tyyppisen ulosmenevän syötteen.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputFeedFactory

public OutputFeedFactory()
Method Detail

createFeed

public static OutputFeed createFeed(java.lang.String title,
                                    OutputFeedFactory.FeedType feedType)
                             throws java.lang.NullPointerException
Luo uuden halutun tyyppisen ulosmenevän syötteen. Parametreiksi metodille annetaan tiedot, jotka kirjoitetaan lopuksi luotavaan syötedokumentin otsakkeisiin.

Parameters:
title - Syötteen nimi.
feedType - Syötetyyppi, jonka mukaisen OutputFeed-olion tehdasluokka luo.
Returns:
Halutun tyyppinen syöte.
Throws:
java.lang.NullPointerException - Jos title tai feedType on null-viite.