Go to the documentation of this file.
20 package net.sf.gridarta.model.resource;
22 import java.io.BufferedReader;
24 import java.io.IOException;
25 import java.io.InputStream;
26 import java.io.InputStreamReader;
27 import java.io.Reader;
29 import java.util.Collections;
30 import java.util.List;
44 import org.apache.log4j.Category;
45 import org.apache.log4j.Logger;
46 import org.jetbrains.annotations.NotNull;
47 import org.jetbrains.annotations.Nullable;
108 protected AbstractCollectedResourcesReader(@NotNull
final File
collectedDirectory, @Nullable
final String
imageSet, @NotNull
final ArchetypeSet<G, A, R> archetypeSet, @NotNull
final AbstractArchetypeParser<G, A, R, ?> archetypeParser, @NotNull
final AnimationObjects animationObjects, @NotNull
final FaceObjects faceObjects, @NotNull
final String
animTreeFile, @NotNull
final String
archetypesFile) {
123 Map<String, String> animations =
null;
128 }
catch (
final IOException ex) {
131 }
catch (
final IOException ex) {
149 try (InputStream inputStream = url.openStream()) {
151 try (BufferedReader bufferedReader =
new BufferedReader(reader)) {
156 }
catch (
final IOException ex) {
160 if (
LOG.isInfoEnabled()) {
163 }
catch (
final IOException ex) {
void loadArchetypes(@NotNull final ErrorView errorView, @NotNull final List< G > invObjects)
final String animTreeFile
static URL getResource(@NotNull final File dir, @NotNull final String fileName)
final String archetypesFile
void parseArchetypeFromStream(@NotNull final BufferedReader in, @Nullable final R prototype, @Nullable final String line, @Nullable final String archName, @NotNull final String panelName, @NotNull final String folderName, @NotNull final String archPath, @NotNull final List< G > invObjects, @NotNull final ErrorViewCollector errorViewCollector)
void setLoadedFromArchive(boolean loadedFromArchive)
static final Category LOG
static final String MAP_ENCODING
AbstractCollectedResourcesReader(@NotNull final File collectedDirectory, @Nullable final String imageSet, @NotNull final ArchetypeSet< G, A, R > archetypeSet, @NotNull final AbstractArchetypeParser< G, A, R, ?> archetypeParser, @NotNull final AnimationObjects animationObjects, @NotNull final FaceObjects faceObjects, @NotNull final String animTreeFile, @NotNull final String archetypesFile)
final File collectedDirectory
final FaceObjects faceObjects
void loadAnimations(@NotNull final ErrorView errorView)
void loadAnimationsFromCollect( @NotNull final ErrorView errorView, @NotNull final Map< String, String > animations)
final AnimationObjects animationObjects
FaceProvider loadFacesCollection(@NotNull final ErrorView errorView)
FaceProvider loadFacesCollection(@NotNull ErrorView errorView, @NotNull File collectedDirectory)
final AbstractArchetypeParser< G, A, R, ?> archetypeParser
final ArchetypeSet< G, A, R > archetypeSet
static Map< String, String > loadAnimTree( @NotNull final URL url)