You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param file | File with specific format content.
584
-
* @param index | Index of value to get from lowest Scope.
585
-
*
586
-
* @return Value with index in lowest Scope. Similar to Serializer.LoadFrom(file).get(index) however this function is specifically designed to load only that 1 value witch saves alto of performance!
587
-
* But target value can't be using any variables declared outside and also can't be variable invocation itself! Also there might be some problems with commented code! Also there can't be no variables in file!
588
-
*
589
-
* @since 1.2.5
590
-
*
591
-
@Deprecated
592
-
public <T> T LoadFrom(File file, int index)
593
-
{
594
-
try
595
-
{
596
-
return LoadFrom(new FileReader(file), index);
597
-
}
598
-
catch (FileNotFoundException e)
599
-
{
600
-
e.printStackTrace();
601
-
}
602
-
return null;
603
-
}
604
-
605
-
/**
606
-
* @param str | Any {@link CharSequence} with specific format content.
607
-
* @param index | Index of value to get from lowest Scope.
608
-
*
609
-
* @return Value with index in lowest Scope. Similar to Serializer.LoadFrom(str).get(index) however this function is specifically designed to load only that 1 value witch saves alto of performance!
610
-
* But target value can't be using any variables declared outside and also can't be variable invocation itself! Also there might be some problems with commented code!
611
-
*
612
-
* @since 1.2.5
613
-
*
614
-
@Deprecated
615
-
public <T> T LoadFrom(CharSequence str, int index)
* @param reader | Any {@link Reader} with specific format content.
622
-
* @param index | Index of value to get from lowest Scope.
623
-
*
624
-
* @return Value with index in lowest Scope. Similar to Serializer.LoadFrom(reader).get(index) however this function is specifically designed to load only that 1 value witch saves alto of performance!
625
-
* But target value can't be using any variables declared outside and also can't be variable invocation itself!
626
-
*
627
-
* @since 1.2.5
628
-
*
629
-
@Deprecated
630
-
@SuppressWarnings("unchecked")
631
-
public <T> T LoadFrom(Reader reader, int index)
632
-
{
633
-
StringBuilder sb = new StringBuilder();
634
-
int semicolon = 0, brackets = 0, quote = 0, vars = 0, multLineCom = -1;
635
-
636
-
String line;
637
-
try
638
-
{
639
-
BufferedReader lineReader = new BufferedReader(reader);
LogProvider.instance.logErr("Value with index " + index + " is out of bounds!");
727
-
return null;
728
-
}
729
-
730
-
/**
731
-
* @param file | File with specific format content.
732
-
* @param varName | Name of variable to load!
733
-
*
734
-
* @return Value of variable with varName in lowest Scope. Similar to Serializer.LoadFrom(file).get(varName) however this function is specifically designed to load only that 1 variable witch saves alto of performance!
735
-
* But target variable can't be using any variables declared outside! Also there might be some problems with commented code!
736
-
*
737
-
* @since 1.2.5
738
-
*
739
-
@Deprecated
740
-
public <T> T LoadFrom(File file, String varName)
741
-
{
742
-
try
743
-
{
744
-
return LoadFrom(new FileReader(file), varName);
745
-
}
746
-
catch (FileNotFoundException e)
747
-
{
748
-
e.printStackTrace();
749
-
}
750
-
return null;
751
-
}
752
-
753
-
/**
754
-
* @param str | Any {@link CharSequence} with specific format content.
755
-
* @param varName | Name of variable to load!
756
-
*
757
-
* @return Value of variable with varName in lowest Scope. Similar to Serializer.LoadFrom(str).get(varName) however this function is specifically designed to load only that 1 variable witch saves alto of performance!
758
-
* But target variable can't be using any variables declared outside! Also there might be some problems with commented code!
759
-
*
760
-
* @since 1.2.5
761
-
*
762
-
@Deprecated
763
-
public <T> T LoadFrom(CharSequence str, String varName)
* @param reader | Any {@link Reader} with specific format content.
770
-
* @param varName | Name of variable to load!
771
-
*
772
-
* @return Value of variable with varName in lowest Scope. Similar to Serializer.LoadFrom(reader).get(varName) however this function is specifically designed to load only that 1 variable witch saves alto of performance!
773
-
* But target variable can't be using any variables declared outside! Also there might be some problems with commented code!
774
-
*
775
-
* @since 1.2.5
776
-
*
777
-
@Deprecated
778
-
@SuppressWarnings("unchecked")
779
-
public <T> T LoadFrom(Reader reader, String varName)
* @deprecated Use {@link ParserRegistry#toString(Object, Object...)}!
59
-
*
60
-
* @param registry | Registry to use!
61
-
* @param obj | Object to convert into string!
62
-
* @param args | Additional arguments that will be obtained in {@link DataParser#toString(String, Object...)}!
63
-
*
64
-
* @return Object converted to string using {@link DataConverter} suitable converter picked from registry!
65
-
* {@link DataConverter#toString(Object, Object...)} of all registered converters will be called however only suitable ones should return the result, others should return {@link DataParser#CONTINUE}!
0 commit comments