Gridarta Editor
net.sf.gridarta.model.smoothface.SmoothFacesLoader Class Reference

Loader for smooth files. More...

+ Collaboration diagram for net.sf.gridarta.model.smoothface.SmoothFacesLoader:

Static Public Member Functions

static void load (@NotNull final URL url, @NotNull final SmoothFaces smoothFaces, @NotNull final ErrorView errorView)
 Loads a smooth file. More...
 

Private Member Functions

 SmoothFacesLoader ()
 Private constructor to prevent instantiation. More...
 

Static Private Member Functions

static void load (@NotNull final String readerName, @NotNull final Reader reader, @NotNull final SmoothFaces smoothFaces, @NotNull final ErrorViewCollector errorViewCollector) throws IOException
 Loads a smooth file. More...
 

Static Private Attributes

static final Category LOG = Logger.getLogger(SmoothFacesLoader.class)
 The Logger for printing log messages. More...
 

Detailed Description

Loader for smooth files.

Author
tchize
Andreas Kirschbaum

Definition at line 42 of file SmoothFacesLoader.java.

Constructor & Destructor Documentation

◆ SmoothFacesLoader()

net.sf.gridarta.model.smoothface.SmoothFacesLoader.SmoothFacesLoader ( )
private

Private constructor to prevent instantiation.

Definition at line 52 of file SmoothFacesLoader.java.

Member Function Documentation

◆ load() [1/2]

static void net.sf.gridarta.model.smoothface.SmoothFacesLoader.load ( @NotNull final URL  url,
@NotNull final SmoothFaces  smoothFaces,
@NotNull final ErrorView  errorView 
)
static

Loads a smooth file.

Parameters
urlthe URL to read from
smoothFacesthe smooth faces to update
errorViewthe error view for reporting errors

Definition at line 61 of file SmoothFacesLoader.java.

References net.sf.gridarta.model.errorview.ErrorViewCollector.addWarning(), net.sf.gridarta.utils.IOUtils.MAP_ENCODING, and net.sf.gridarta.model.errorview.ErrorViewCategory.SMOOTH_FILE_INVALID.

Referenced by net.sf.gridarta.var.crossfire.resource.CollectedResourcesReader.loadSmoothFaces().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ load() [2/2]

static void net.sf.gridarta.model.smoothface.SmoothFacesLoader.load ( @NotNull final String  readerName,
@NotNull final Reader  reader,
@NotNull final SmoothFaces  smoothFaces,
@NotNull final ErrorViewCollector  errorViewCollector 
) throws IOException
staticprivate

Loads a smooth file.

Parameters
readerNamethe (file) name of the reader
readerthe reader to read from
smoothFacesthe smooth faces to update
errorViewCollectorthe error view collector for reporting errors
Exceptions
IOExceptionif loadings fails

Definition at line 84 of file SmoothFacesLoader.java.

References net.sf.gridarta.model.smoothface.DuplicateSmoothFaceException.getNewValue(), net.sf.gridarta.model.smoothface.DuplicateSmoothFaceException.getOldValue(), and net.sf.gridarta.model.errorview.ErrorViewCategory.SMOOTH_FILE_INVALID.

+ Here is the call graph for this function:

Member Data Documentation

◆ LOG

final Category net.sf.gridarta.model.smoothface.SmoothFacesLoader.LOG = Logger.getLogger(SmoothFacesLoader.class)
staticprivate

The Logger for printing log messages.

Definition at line 47 of file SmoothFacesLoader.java.


The documentation for this class was generated from the following file: